From 702afe2388847d23b7ffadc3d75adca0275a52f1 Mon Sep 17 00:00:00 2001 From: ChenX Date: Wed, 8 May 2024 14:42:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91:=E9=81=BF=E5=85=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UI/Store/TopPanelStore.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/UI/Store/TopPanelStore.ts b/src/UI/Store/TopPanelStore.ts index 706755ea3..0c8869211 100644 --- a/src/UI/Store/TopPanelStore.ts +++ b/src/UI/Store/TopPanelStore.ts @@ -94,9 +94,9 @@ export class TopPanelStore autorun(() => { //有前面层视图的时候隐藏绘图区域 - needOpacityEls.forEach(el => - el.style.opacity = this.isLogin && !this.openMain ? "1" : "0" - ); + for (let el of needOpacityEls) + if (el)//避免未来某天在shareview中又坏了 + el.style.opacity = this.isLogin && !this.openMain ? "1" : "0"; }); }