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