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(() => {