mirror of
https://github.com/tauri-apps/tauri-docs.git
synced 2026-01-31 00:35:16 +01:00
fix: wrong example in src-tauri/capabilities/default.json (#2895)
This commit is contained in:
@@ -55,13 +55,13 @@ Tauri 提供了许多自定义应用程序窗口外观的选项。您可以创
|
||||
|
||||
更多信息请参见[访问控制列表](/zh-cn/reference/acl/)。
|
||||
|
||||
```json title="src-tauri/capabilities/default.json" ins={7-8}
|
||||
```json title="src-tauri/capabilities/default.json" ins={6}
|
||||
{
|
||||
"$schema": "../gen/schemas/desktop-schema.json",
|
||||
"identifier": "main-capability",
|
||||
"description": "Capability for the main window",
|
||||
"windows": ["main"],
|
||||
"permissions": ["window:default", "window:allow-start-dragging"]
|
||||
"permissions": ["core:window:default", "core:window:allow-start-dragging"]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user