You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB

<template>
<a-config-provider :locale="locale">
<router-view></router-view>
</a-config-provider>
</template>
<script>
import {ConfigProvider} from 'ant-design-vue'
import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN';
export default {
name: 'App',
data:function(){
return{
locale: zhCN,
}
},
components: {
AConfigProvider:ConfigProvider,
},
mounted(){
let html = document.getElementsByTagName('html')[0];
html.style.overflow = 'auto';
html.style.width = '100%';
// html.style.minWidth = '1920px';
html.style.height = '100%';
html.style.minHeight = '400px';
let body = document.getElementsByTagName('body')[0];
body.style.width = '100%';
body.style.height = '100%';
body.style.margin = '0'
document.getElementsByTagName('title')[0].innerText = "长春市学生体质健康信息化管理系统";
let favicon = document.querySelector('link[rel="icon"]');
if (favicon !== null) {
favicon.href = "/log.svg";
} else {
favicon = document.createElement("link");
favicon.rel = "icon";
favicon.href = "<%= BASE_URL %>log.svg";
document.head.appendChild(favicon);
}
}
}
</script>
<style scoped lang="scss">
</style>