From f4693216c0d19774d7d0587727ccc9c60cae38d7 Mon Sep 17 00:00:00 2001 From: tanghaolin <1723298894@qq.com> Date: 星期三, 23 四月 2025 17:17:46 +0800 Subject: [PATCH] 修改新闻资讯界面 --- src/App.vue | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/App.vue b/src/App.vue index 6207c3d..ed2ba96 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,9 +3,9 @@ <div class="h-full bg-gray-50 flex flex-col"> <template v-if="!isLoginPage"> <AppHeader class="flex-0" /> - <div id="app-page" class="flex-auto !overflow-y-auto bg-[#f4f4f4]" ref="containerRef"> - <div class="w-[63%] mx-auto"> - <router-view></router-view> + <div id="app-page" class="flex-auto !overflow-y-auto bg-[#ffffff]" ref="containerRef"> + <div class="w-[100%] mx-auto"> + <router-view :key="routerKey"></router-view> </div> <AppFooter></AppFooter> </div> @@ -30,7 +30,9 @@ const isLoginPage = computed(() => { return route.path === '/login'; }); - +let routerKey = computed(() => { + return `${route.path}?v=${Math.random()}`; +}); // 鐩戝惉璺敱鍙樺寲锛屾粴鍔ㄥ埌椤堕儴 watch( () => route.path, -- Gitblit v1.9.3