From 8cc608c307d9757a8bc325e1363f1a444a70988d Mon Sep 17 00:00:00 2001 From: ayang <473033518@qq.com> Date: Mon, 20 Mar 2023 00:34:37 +0800 Subject: [PATCH] feat: set the modal to add a click mask to close, close #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" >