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

52 lines
812 B
Vue

4 years ago
<template>
<div id="app">
4 years ago
<router-view v-if="isRouterViewshow" />
4 years ago
</div>
</template>
4 years ago
<script>
export default {
provide() {
return {
reload: this.loader,
};
},
data() {
return {
isRouterViewshow: true,
};
},
methods: {
loader() {
this.isRouterViewshow = false;
console.log(123);
this.$nextTick(() => {
this.isRouterViewshow = true;
});
},
},
};
</script>
4 years ago
<style lang="less">
#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
height: 100%;
4 years ago
}
#nav {
padding: 30px;
a {
font-weight: bold;
color: #2c3e50;
&.router-link-exact-active {
color: #42b983;
}
}
}
</style>