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

72 lines
1.3 KiB
Vue

4 years ago
<template>
4 years ago
<a-config-provider :locale="locale">
<div id="app">
<router-view v-if="isRouterViewshow" />
</div>
</a-config-provider>
4 years ago
</template>
4 years ago
<script>
4 years ago
import zhCn from "ant-design-vue/lib/locale-provider/zh_CN";
2 years ago
let sp = document.createElement('script')
2 years ago
sp.src = '//at.alicdn.com/t/c/font_3135652_34tw0b78y6p.js'
2 years ago
document.body.appendChild(sp)
4 years ago
export default {
provide() {
return {
reload: this.loader,
};
},
4 years ago
created() {
console.log(this);
},
4 years ago
data() {
return {
isRouterViewshow: true,
4 years ago
locale: zhCn,
4 years ago
};
},
methods: {
loader() {
this.isRouterViewshow = false;
this.$nextTick(() => {
this.isRouterViewshow = true;
});
},
},
};
</script>
4 years ago
<style lang="less">
2 years ago
@import "//matripeweb.oss-cn-hangzhou.aliyuncs.com/antd/ant.css";
3 years ago
4 years ago
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
4 years ago
// text-align: center;
4 years ago
// color: #2c3e50;
4 years ago
// width: 100vw;
// overflow-x: overlay;
4 years ago
height: 100%;
4 years ago
width: 100vw;
4 years ago
}
#nav {
padding: 30px;
a {
4 years ago
font-weight: normal;
4 years ago
color: #2c3e50;
&.router-link-exact-active {
color: #42b983;
}
}
}
3 years ago
body {
position: inherit !important;
width: auto !important;
overflow: revert !important;
}
2 years ago
4 years ago
</style>