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",
|
"beforeBuildCommand": "npm run build",
|
||||||
"devPath": "http://localhost:1420",
|
"devPath": "http://localhost:1420",
|
||||||
"distDir": "../dist",
|
"distDir": "../dist",
|
||||||
"withGlobalTauri": false
|
"withGlobalTauri": true
|
||||||
},
|
},
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "tauri-genshin",
|
"productName": "tauri-genshin",
|
||||||
@@ -13,6 +13,10 @@
|
|||||||
"tauri": {
|
"tauri": {
|
||||||
"allowlist": {
|
"allowlist": {
|
||||||
"all": true,
|
"all": true,
|
||||||
|
"fs": {
|
||||||
|
"all": true,
|
||||||
|
"scope": ["**", "**/*"]
|
||||||
|
},
|
||||||
"http": {
|
"http": {
|
||||||
"all": true,
|
"all": true,
|
||||||
"request": true,
|
"request": true,
|
||||||
@@ -26,7 +30,7 @@
|
|||||||
"bundle": {
|
"bundle": {
|
||||||
"active": true,
|
"active": true,
|
||||||
"icon": ["icons/icon.png", "icons/icon.ico"],
|
"icon": ["icons/icon.png", "icons/icon.ico"],
|
||||||
"identifier": "com.tauri.dev",
|
"identifier": "tauri-genshin",
|
||||||
"targets": "all"
|
"targets": "all"
|
||||||
},
|
},
|
||||||
"security": {
|
"security": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
|
|
||||||
export const useAppStore = defineStore({
|
const useAppStore = defineStore({
|
||||||
id: "app",
|
id: "app",
|
||||||
state: () => {
|
state: () => {
|
||||||
return {
|
return {
|
||||||
@@ -8,7 +8,15 @@ export const useAppStore = defineStore({
|
|||||||
sidebar: {
|
sidebar: {
|
||||||
expand: true,
|
expand: true,
|
||||||
},
|
},
|
||||||
|
dataPath: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
actions: {
|
||||||
|
setDataPath(path: string) {
|
||||||
|
this.dataPath = path;
|
||||||
|
},
|
||||||
|
},
|
||||||
persist: true,
|
persist: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export default useAppStore;
|
||||||
|
|||||||
Reference in New Issue
Block a user