!200 性能提升, 未知key时处理逻辑调整

Merge pull request !200 from ly-chn/ly-chn
This commit is contained in:
奔跑的面条
2023-09-03 09:59:15 +00:00
committed by Gitee
3 changed files with 27 additions and 14 deletions
+1 -3
View File
@@ -196,9 +196,7 @@ export const useSync = () => {
chartHistoryStore.clearForwardStack()
}
}
} else {
// 非组件(顺便排除脏数据)
if (key !== 'editCanvasConfig' && key !== 'requestGlobalConfig') return
} else if (key === ChartEditStoreEnum.EDIT_CANVAS_CONFIG || key === ChartEditStoreEnum.REQUEST_GLOBAL_CONFIG) {
componentMerge(chartEditStore[key], projectData[key], true)
}
}