🐛 我真傻,真的

This commit is contained in:
BTMuli
2023-11-16 23:58:17 +08:00
parent 54d2e27054
commit 630a64323d
2 changed files with 2 additions and 3 deletions

View File

@@ -147,7 +147,7 @@
"height": 800, "height": 800,
"center": true, "center": true,
"decorations": true, "decorations": true,
"closable": false "closable": true
} }
] ]
} }

View File

@@ -429,8 +429,7 @@ class TGClient {
async closePage(): Promise<void> { async closePage(): Promise<void> {
this.route.pop(); this.route.pop();
if (this.route.length === 0) { if (this.route.length === 0) {
await this.open(""); await this.window?.close();
await this.window?.hide();
return; return;
} }
const url = this.route[this.route.length - 1]; const url = this.route[this.route.length - 1];