From e5cf4684d8661ff34df5d0e6a23b68e0c3e7e4ad Mon Sep 17 00:00:00 2001 From: linju Date: Wed, 7 Sep 2022 19:51:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=B2=E7=9F=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/grid/grid.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pages/grid/grid.vue b/pages/grid/grid.vue index 601821a..61d2610 100644 --- a/pages/grid/grid.vue +++ b/pages/grid/grid.vue @@ -52,13 +52,12 @@ return { gridList: [], current: 0, - swiperDotIndex: 0 + swiperDotIndex: 0, + hasLogin:false } }, - computed: { - hasLogin(){ - return uniCloud.getCurrentUserInfo().tokenExpired > Date.now() - } + onShow() { + this.hasLogin = uniCloud.getCurrentUserInfo().tokenExpired > Date.now() }, onLoad() { let gridList = [] -- GitLab