diff --git a/src/store/modules/app.ts b/src/store/modules/app.ts index e3121c0a..4fd8fe82 100644 --- a/src/store/modules/app.ts +++ b/src/store/modules/app.ts @@ -34,6 +34,7 @@ interface AppState { pageTitle: string; version: string; isMobile: boolean; + reloadTimer: Nullable; } export const appStore = defineStore({ @@ -53,6 +54,7 @@ export const appStore = defineStore({ pageTitle: "", version: "", isMobile: false, + reloadTimer: null, }), getters: { duration(): Duration { @@ -173,6 +175,9 @@ export const appStore = defineStore({ this.version = res.data.data.version; return res.data; }, + setReloadTimer(timer: any): void { + this.reloadTimer = timer; + }, }, }); export function useAppStoreWithOut(): any { diff --git a/src/views/Settings.vue b/src/views/Settings.vue index 056c83e6..49a17d07 100644 --- a/src/views/Settings.vue +++ b/src/views/Settings.vue @@ -69,7 +69,7 @@ limitations under the License. -->