feat: 添加 Tauri 桌面应用支持并设置窗口标题

- 添加 Tauri API 依赖包以支持桌面应用功能
- 添加 Tauri 应用 API 依赖以支持本地应用功能。
- 启用本地与远程访问权限并添加窗口标题设置权限
- 在 Tauri 应用中动态设置窗口标题为“待办事项”
This commit is contained in:
2026-01-18 16:18:17 +08:00
parent 6721a06d7f
commit 72c566b721
4 changed files with 21 additions and 1 deletions

View File

@@ -3,8 +3,17 @@
"identifier": "default",
"description": "Capability for the main window",
"windows": ["main"],
"local": true,
"remote": {
"urls": [
"http://localhost:*",
"http://127.0.0.1:*",
"http{s}?://localhost(:\\d+)?/*"
]
},
"permissions": [
"core:default",
"core:window:allow-set-title",
{
"identifier": "shell:allow-execute",
"allow": [