mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-15 09:48:14 +08:00
fix(config): 数据文件内容优化
* 应用自带的文件应该用于初始化,不过好像也没有更改文件的途径
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import { defineStore } from "pinia";
|
||||
import { path } from "@tauri-apps/api";
|
||||
|
||||
const appDataDir = `${await path.appLocalDataDir()}appData`;
|
||||
const userDataDir = `${await path.appLocalDataDir()}userData`;
|
||||
|
||||
const useAppStore = defineStore({
|
||||
id: "app",
|
||||
@@ -9,8 +13,8 @@ const useAppStore = defineStore({
|
||||
expand: true,
|
||||
},
|
||||
dataPath: {
|
||||
app: "",
|
||||
user: "",
|
||||
app: appDataDir,
|
||||
user: userDataDir,
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user