Commit 016fbcfe by yancanhua

fix: 页面优化

1 parent 68f9266e
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
<router-view v-if="!$route.meta.keepAlive"></router-view> <router-view v-if="!$route.meta.keepAlive"></router-view>
</transition> </transition>
</template> </template>
<template v-else>
<div style="text-align: center;font-size: 14px;height: 48px;line-height: 48px;">{{windowTitle}}</div>
</template>
</div> </div>
</template> </template>
<script> <script>
...@@ -17,7 +20,8 @@ export default { ...@@ -17,7 +20,8 @@ export default {
name: 'App', name: 'App',
data() { data() {
return { return {
showWindow: false showWindow: false,
windowTitle: ''
} }
}, },
watch: { watch: {
...@@ -34,10 +38,15 @@ export default { ...@@ -34,10 +38,15 @@ export default {
return this.$store.state.app.showWindow return this.$store.state.app.showWindow
} }
}, },
mounted() {},
mounted() {
const that = this
setTimeout(() => {
that.windowTitle = '无权限访问'
}, 2000);
},
methods: {} methods: {}
} }
</script> </script>
<style lang="scss" scoped>
</style>
\ No newline at end of file \ No newline at end of file
<style lang="scss" scoped></style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!