From c7b33db117fd2893d7d1c93bf5d46e87d33e44d0 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期一, 16 十二月 2024 16:08:51 +0800 Subject: [PATCH] 初审结果查询 --- src/App.vue | 46 ++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 38 insertions(+), 8 deletions(-) diff --git a/src/App.vue b/src/App.vue index 29de49f..138b2fa 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,6 @@ <template> <div id="app"> - <router-view /> + <router-view v-if="isRouterAlive"/> <theme-picker /> </div> </template> @@ -10,19 +10,49 @@ export default { name: "App", + provide() { + return { + reload: this.reload, + }; + }, + data() { + return { + isRouterAlive: true, + }; + }, components: { ThemePicker }, - metaInfo() { - return { - title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title, - titleTemplate: title => { - return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE - } - } + metaInfo() { + return { + title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title, + titleTemplate: title => { + return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE + } } + }, + created() { + }, + methods: { + reload() { + this.isRouterAlive = false; + this.$nextTick(function () { + this.isRouterAlive = true; + }); + }, + }, }; </script> <style scoped> #app .theme-picker { display: none; } +/* #app{ + width:1920px; + height:1080px; +} */ + + +body { + margin: 0; + padding: 0; +} </style> -- Gitblit v1.8.0