mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-10 08:58:15 +08:00
fix(#2): 修复无法创建文件的问题
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"beforeBuildCommand": "npm run build",
|
||||
"devPath": "http://localhost:1420",
|
||||
"distDir": "../dist",
|
||||
"withGlobalTauri": false
|
||||
"withGlobalTauri": true
|
||||
},
|
||||
"package": {
|
||||
"productName": "tauri-genshin",
|
||||
@@ -13,6 +13,10 @@
|
||||
"tauri": {
|
||||
"allowlist": {
|
||||
"all": true,
|
||||
"fs": {
|
||||
"all": true,
|
||||
"scope": ["**", "**/*"]
|
||||
},
|
||||
"http": {
|
||||
"all": true,
|
||||
"request": true,
|
||||
@@ -26,7 +30,7 @@
|
||||
"bundle": {
|
||||
"active": true,
|
||||
"icon": ["icons/icon.png", "icons/icon.ico"],
|
||||
"identifier": "com.tauri.dev",
|
||||
"identifier": "tauri-genshin",
|
||||
"targets": "all"
|
||||
},
|
||||
"security": {
|
||||
|
||||
@@ -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