feat: 新增导入导出功能😍

This commit is contained in:
MTrun
2022-04-10 17:56:51 +08:00
parent c7a9c24871
commit d1bb15b883
9 changed files with 185 additions and 42 deletions
@@ -100,6 +100,11 @@ export const useChartHistoryStore = defineStore({
clearForwardStack() {
this.forwardStack = []
},
// * 清空后退栈(保留初始化)
clearBackStack() {
const canvasHistory = this.getBackStack[0]
this.backStack = [canvasHistory]
},
// * 撤回
backAction() {
try {