From 72760a64ea4dbebc3fff9bcb258535c26e89a06a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Thu, 11 Jul 2024 22:25:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(permission):=E8=B0=83=E6=95=B4window?= =?UTF-8?q?=E7=9A=84=E6=8B=96=E5=8A=A8=E5=8A=9F=E8=83=BD=E8=AE=B8=E5=8F=AF?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/capabilities/default.json | 9 ++++++--- src-tauri/tauri.conf.json | 10 ++++++++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json index e14ca1d..58d7e55 100644 --- a/src-tauri/capabilities/default.json +++ b/src-tauri/capabilities/default.json @@ -2,7 +2,9 @@ "$schema": "../gen/schemas/desktop-schema.json", "identifier": "default", "description": "Capability for the main window", - "windows": ["main"], + "windows": [ + "main" + ], "permissions": [ "path:default", "event:default", @@ -12,6 +14,7 @@ "resources:default", "menu:default", "tray:default", - "shell:allow-open" + "shell:allow-open", + "window:allow-start-dragging" ] -} +} \ No newline at end of file diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 8622bfe..e491018 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -13,7 +13,13 @@ { "title": "BugWork", "width": 1200, - "height": 800 + "height": 800, + "minWidth": 1200, + "minHeight": 800, + "titleBarStyle": "Overlay", + "decorations": true, + "hiddenTitle": true, + "transparent": false } ], "security": { @@ -31,4 +37,4 @@ "icons/icon.ico" ] } -} +} \ No newline at end of file