From d48f7bc9869587cda74033b43bd13123a3ba6848 Mon Sep 17 00:00:00 2001 From: wkj <278599135@qq.com> Date: Tue, 2 Aug 2022 17:55:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/func/debugPanel/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/components/func/debugPanel/index.ts b/app/components/func/debugPanel/index.ts index 8cc438f15..d07b36314 100644 --- a/app/components/func/debugPanel/index.ts +++ b/app/components/func/debugPanel/index.ts @@ -21,9 +21,7 @@ export default OakComponent({ this.setVisible(true); }, onVisibleChange(e: any) { - this.setData({ - visible: e.detail.visible, - }); + this.setVisible(e.detail.visible); }, }, });