From cec6c2c04e417ff689e69afc11d303089890d813 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Thu, 28 Nov 2024 14:21:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/form/index.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pages/form/index.ts b/pages/form/index.ts index 7827c0e..fff013c 100644 --- a/pages/form/index.ts +++ b/pages/form/index.ts @@ -16,6 +16,9 @@ Page({ }, onShow() { const that = this; + this.setData({ + isJoin: false + }) wx.getStorage({ key: 'isConnected', success(res: any) { @@ -124,10 +127,11 @@ Page({ }) }) }) + } else { + this.setData({ + isJoin: false + }) } - this.setData({ - isJoin: false - }) }).catch(() => { this.setData({ isJoin: false