diff --git a/src/renderer/src/App.vue b/src/renderer/src/App.vue index 769f426..b9885f5 100644 --- a/src/renderer/src/App.vue +++ b/src/renderer/src/App.vue @@ -40,7 +40,7 @@ const arcoDesignLocales = { } const data = reactive({ - isLoad: false, + isWelcomeFinish: false, sidebarConfig: [ { name: 'chat', @@ -81,7 +81,7 @@ const data = reactive({ ] as { name: PageName; icon: string }[], alivePages: ['chat'] as PageName[] }) -const { isLoad, sidebarConfig, alivePages } = toRefs(data) +const { isWelcomeFinish, sidebarConfig, alivePages } = toRefs(data) // 主题设置监听 let stopDarkThemeListener: any = null @@ -162,9 +162,8 @@ onMounted(() => { locale.value = settingStore.app.locale // 刷新 dayKey,用于更具日期自动刷新组件 systemStore.startDayKeyInterval() - // 显示主界面,防止夜间主题从白色闪烁到黑色 + // 延迟监听加载状态 setTimeout(() => { - data.isLoad = true watchLoading() }, 3000) }) @@ -173,8 +172,8 @@ onMounted(() => {