feat: 加载完毕 清除历史记录

This commit is contained in:
Ming 2023-05-04 17:17:45 +08:00
parent 663cc94ae1
commit 38d542ce77

View File

@ -185,6 +185,11 @@ export const useSync = () => {
} else {
await create(comItem as CreateComponentType)
}
if (percentage === 100) {
// 清除历史记录
chartHistoryStore.clearBackStack()
chartHistoryStore.clearForwardStack()
}
}
} else {
// 非组件(顺便排除脏数据)