From 430e8b2f344c017e6f94dbe0ba291897904577be Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Fri, 19 Apr 2024 20:57:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=B7=E6=96=B0=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/main/custom/toolbar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/main/custom/toolbar.ts b/src/core/main/custom/toolbar.ts index abdfa94..38b7a82 100644 --- a/src/core/main/custom/toolbar.ts +++ b/src/core/main/custom/toolbar.ts @@ -197,7 +197,7 @@ export class CustomToolbar extends EventEmitter { * 强制刷新这个自定义工具栏的所有显示 */ refresh(reopen: boolean = false) { - if (reopen) { + if (reopen && this.showIds.length > 0) { this.closeAll(); nextTick(() => { this.show();