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 | 27 ++++++++++++++++++++++++--- 1 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index 3194fbc..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> @@ -8,9 +8,18 @@ <script> import ThemePicker from "@/components/ThemePicker"; -import devPixelRatio from "@/utils/devicePixelRatio.js"; export default { name: "App", + provide() { + return { + reload: this.reload, + }; + }, + data() { + return { + isRouterAlive: true, + }; + }, components: { ThemePicker }, metaInfo() { return { @@ -21,7 +30,14 @@ } }, created() { - new devPixelRatio().init(); // 鍒濆鍖栭〉闈㈡瘮渚� + }, + methods: { + reload() { + this.isRouterAlive = false; + this.$nextTick(function () { + this.isRouterAlive = true; + }); + }, }, }; </script> @@ -29,6 +45,11 @@ #app .theme-picker { display: none; } +/* #app{ + width:1920px; + height:1080px; +} */ + body { margin: 0; -- Gitblit v1.8.0