build(tauri): 添加操作系统插件并调整窗口配置
- 在 package.json 和 Cargo.toml 中添加 @tauri-apps/plugin-os 依赖 - 在 default.json 中添加 os:default 权限 - 在 lib.rs 中初始化 tauri_plugin_os - 在 tauri.conf.json 中设置 hiddenTitle 为 true 并添加 titleBarStyle 为 Overlay
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
"@tailwindcss/vite": "^4.1.11",
|
||||
"@tauri-apps/plugin-dialog": "~2.3.1",
|
||||
"@tauri-apps/plugin-fs": "~2.4.1",
|
||||
"@tauri-apps/plugin-os": "~2.3.0",
|
||||
"@tauri-apps/plugin-store": "~2.3.0",
|
||||
"clsx": "^2.1.1",
|
||||
"dayjs": "^1.11.13",
|
||||
|
Reference in New Issue
Block a user