mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
📦 add(db): 添加数据库路径
This commit is contained in:
@@ -16,6 +16,8 @@ import { path } from "@tauri-apps/api";
|
||||
const userDataDir = `${await path.appLocalDataDir()}userData`;
|
||||
// 用于各种临时数据的路径
|
||||
const tempDataDir = `${await path.appLocalDataDir()}tempData`;
|
||||
// 用于存放数据库的路径
|
||||
const dbDataPath = `${await path.appConfigDir()}tauri-genshin.db`;
|
||||
|
||||
export const useAppStore = defineStore(
|
||||
"app",
|
||||
@@ -44,6 +46,7 @@ export const useAppStore = defineStore(
|
||||
const dataPath = reactive({
|
||||
userDataDir,
|
||||
tempDataDir,
|
||||
dbDataPath,
|
||||
});
|
||||
// 用户数据路径
|
||||
const userPath = ref({
|
||||
|
||||
Reference in New Issue
Block a user