Skip to content

Commit 801c05a

Browse files
committed
feat (core): 增加日志设置功能
1 parent 894a0b7 commit 801c05a

12 files changed

Lines changed: 993 additions & 21 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@tauri-apps/api": "^2",
14+
"@tauri-apps/plugin-dialog": "^2.3.2",
1415
"@tauri-apps/plugin-opener": "^2",
1516
"@tauri-apps/plugin-shell": "^2.3.0",
1617
"@vueuse/core": "^13.6.0",

src-tauri/Cargo.lock

Lines changed: 214 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ chrono = { version = "0.4.41", features = ["serde"] }
1717
tauri = { version = "2", features = [] }
1818
tauri-plugin-opener = "2"
1919
tauri-plugin-shell = "2.0"
20+
tauri-plugin-dialog = "2.0"
2021
serde = { version = "1", features = ["derive"] }
2122
serde_json = "1"
2223
tokio = "1.47.1"
@@ -25,3 +26,4 @@ tempfile = "3.0"
2526
chrono = { version = "0.4", features = ["serde"] }
2627
log = "0.4"
2728
fern = "0.7.1"
29+
dirs = "6.0.0"

src-tauri/capabilities/default.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,16 @@
88
"permissions": [
99
"core:default",
1010
"opener:default",
11+
{
12+
"identifier": "opener:allow-open-path",
13+
"allow": [
14+
{
15+
"path": "**"
16+
}
17+
]
18+
},
19+
"shell:default",
1120
"shell:allow-open",
12-
"shell:default"
21+
"dialog:default"
1322
]
1423
}

0 commit comments

Comments
 (0)