From 613d675c70e3deaab0bc800bf769b27f35d44049 Mon Sep 17 00:00:00 2001 From: ayang <473033518@qq.com> Date: Mon, 20 Mar 2023 00:30:58 +0800 Subject: [PATCH] feat: set the pop-up box to add a click mask to close, resolve #12 --- src-tauri/tauri.conf.json | 4 ++-- src/components/Function/components/SettingsModal.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index e00e777..3514991 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -80,9 +80,9 @@ "resizable": false, "maximized": false, "title": "ChatGPT", - "alwaysOnTop": false, "decorations": false, - "transparent": true + "transparent": true, + "center": true } ], "systemTray": { diff --git a/src/components/Function/components/SettingsModal.vue b/src/components/Function/components/SettingsModal.vue index 2ebba10..3b44c25 100644 --- a/src/components/Function/components/SettingsModal.vue +++ b/src/components/Function/components/SettingsModal.vue @@ -13,11 +13,11 @@ const { apiKey, autoStart, isMemory } = storeToRefs(useSettingsStore()) simple hide-cancel :visible="visible" - :mask-closable="false" :mask-style="{ borderRadius: '0.75rem' }" @ok="setVisible" + @cancel="setVisible" >