feat(config): 配置文件的导入\读取\删除草创

* 后续只保留 appData,userData 默认清空
This commit is contained in:
BTMuli
2023-03-08 11:06:34 +08:00
parent 576e8f1487
commit 2e3710f908
7 changed files with 16291 additions and 8 deletions

View File

@@ -8,14 +8,12 @@ const useAppStore = defineStore({
sidebar: {
expand: true,
},
dataPath: "",
dataPath: {
app: "",
user: "",
},
};
},
actions: {
setDataPath(path: string) {
this.dataPath = path;
},
},
persist: true,
});