mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
fix(#2): 修复无法创建文件的问题
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
export const useAppStore = defineStore({
|
||||
const useAppStore = defineStore({
|
||||
id: "app",
|
||||
state: () => {
|
||||
return {
|
||||
@@ -8,7 +8,15 @@ export const useAppStore = defineStore({
|
||||
sidebar: {
|
||||
expand: true,
|
||||
},
|
||||
dataPath: "",
|
||||
};
|
||||
},
|
||||
actions: {
|
||||
setDataPath(path: string) {
|
||||
this.dataPath = path;
|
||||
},
|
||||
},
|
||||
persist: true,
|
||||
});
|
||||
|
||||
export default useAppStore;
|
||||
|
||||
Reference in New Issue
Block a user