From 630a64323d66379953c0f952533c63d9c9d41585 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Thu, 16 Nov 2023 23:58:17 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E6=88=91=E7=9C=9F=E5=82=BB?= =?UTF-8?q?=EF=BC=8C=E7=9C=9F=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/tauri.conf.json | 2 +- src/utils/TGClient.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index aaff9f46..9f7e78ea 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -147,7 +147,7 @@ "height": 800, "center": true, "decorations": true, - "closable": false + "closable": true } ] } diff --git a/src/utils/TGClient.ts b/src/utils/TGClient.ts index 141036b9..ce416fcc 100644 --- a/src/utils/TGClient.ts +++ b/src/utils/TGClient.ts @@ -429,8 +429,7 @@ class TGClient { async closePage(): Promise { this.route.pop(); if (this.route.length === 0) { - await this.open(""); - await this.window?.hide(); + await this.window?.close(); return; } const url = this.route[this.route.length - 1];