From 63eb2217f560cd6e80851e3ed25de678662aa6a7 Mon Sep 17 00:00:00 2001 From: bestlee Date: Sat, 10 Oct 2026 14:39:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E7=99=BB=E5=BD=95=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=EF=BC=8C=E5=B7=A6=E4=BE=A7=E8=8F=9C=E5=8D=95=E6=8C=89?= =?UTF-8?q?=E6=9D=83=E9=99=90=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/route/index.ts | 3 ++- src/views/docs/archives/index.vue | 6 ++++-- src/views/home/modules/template1.vue | 4 +++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/store/modules/route/index.ts b/src/store/modules/route/index.ts index ccbbc67..f0254b2 100644 --- a/src/store/modules/route/index.ts +++ b/src/store/modules/route/index.ts @@ -178,7 +178,7 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => { /** Init auth route */ async function initAuthRoute() { // check if user info is initialized - if (!authStore.userInfo.userId) { + if (!authStore.userInfo.user_id) { await authStore.initUserInfo(); } @@ -370,6 +370,7 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => { } async function onRouteSwitchWhenLoggedIn() { + initAuthRoute(); // some global init logic when logged in and switch route } diff --git a/src/views/docs/archives/index.vue b/src/views/docs/archives/index.vue index ae3fc13..ff1c00f 100644 --- a/src/views/docs/archives/index.vue +++ b/src/views/docs/archives/index.vue @@ -503,7 +503,7 @@ onMounted(() => {
全文检索「{{ keyword }}」:跨全部文件夹命中 {{ queryList.length }} 份
-
+
@@ -521,7 +521,9 @@ onMounted(() => { 下载
-
未匹配到相关资料
+
+ +
diff --git a/src/views/home/modules/template1.vue b/src/views/home/modules/template1.vue index 13bec19..be544b2 100644 --- a/src/views/home/modules/template1.vue +++ b/src/views/home/modules/template1.vue @@ -168,7 +168,9 @@ onUnmounted(() => {