From 092a74f834088aafddc40a1bbdc791c34fe686cf Mon Sep 17 00:00:00 2001 From: Sun <95302870@qq.com> Date: Thu, 28 Dec 2023 21:31:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=AE=E6=94=B9=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=97=A0=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/apps/Style/index.vue | 1 + src/store/modules/panel/index.ts | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/apps/Style/index.vue b/src/components/apps/Style/index.vue index aee4034..42b77e2 100644 --- a/src/components/apps/Style/index.vue +++ b/src/components/apps/Style/index.vue @@ -40,6 +40,7 @@ watch(panelState.panelConfig, () => { setTimeout(() => { panelState.recordState()// 本地记录 + isSaveing.value = false uploadCloud() }, 1000) } diff --git a/src/store/modules/panel/index.ts b/src/store/modules/panel/index.ts index 084ba94..7814b88 100644 --- a/src/store/modules/panel/index.ts +++ b/src/store/modules/panel/index.ts @@ -7,12 +7,6 @@ export const usePanelState = defineStore('panel', { state: (): Panel.State => getLocalState() || defaultState(), getters: { - // getChatHistoryByCurrentActive(state: AiApplet.State) { - // const index = state.history.findIndex(item => item.id === state.active) - // if (index !== -1) - // return state.history[index] - // return null - // }, }, @@ -36,7 +30,7 @@ export const usePanelState = defineStore('panel', { updatePanelConfigByCloud() { getUserConfig().then((res) => { if (res.code === 0) - this.panelConfig = res.data.panel + this.panelConfig = { ...defaultStatePanelConfig(), ...res.data.panel } else this.resetPanelConfig() // 重置恢复默认 this.recordState()