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.

60 lines
1.1 KiB

<!--
* @Author: your name
* @Date: 2021-11-18 17:15:53
* @LastEditTime: 2021-11-26 12:10:54
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /ansu-business/src/App.vue
-->
<template>
<a-config-provider :locale="locale">
<div id="app">
<router-view v-if="isRouterAlive"></router-view>
<alarmModal></alarmModal>
</div>
</a-config-provider>
</template>
<script>
import zhCN from "ant-design-vue/lib/locale-provider/zh_CN";
export default {
name: 'App',
provide () {
return {
reload: this.reload
}
},
data() {
return {
locale: zhCN,
isRouterAlive: true
};
},
methods: {
reload () {
this.isRouterAlive = false
this.$nextTick(() => {
this.isRouterAlive = true
})
}
}
}
</script>
<style>
html,
body {
width: 100%;
height: 100%;
font-family: "Arial", "Microsoft YaHei", "黑体", "宋体", sans-serif;
font-size: 62.5%;
}
#app {
width: 100%;
height: 100%;
min-width: 1500px;
min-height: 760px;
overflow: auto;
}
</style>