From b70e26c7be40ad4ccb971f3bbc0fbcb32fe82df1 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期三, 03 四月 2024 17:14:20 +0800 Subject: [PATCH] 学习 --- pages/study/index.js | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/pages/study/index.js b/pages/study/index.js index cb9b87e..1e682d6 100644 --- a/pages/study/index.js +++ b/pages/study/index.js @@ -36,22 +36,7 @@ */ onLoad() { // 妫�鏌ョ櫥褰曠姸鎬� - const token = wx.getStorageSync(app.config.tokenKey) - if (!token) { - loginInfo(app, (data) => { - if (data) { - this.getUserInfo() - this.getStaticsSum(); - this.getDataList(false); - } - }) - } else { - this.getUserInfo() - this.getStaticsSum(); - this.getDataList(false); - - } }, @@ -71,6 +56,21 @@ active: 2 }) } + const token = wx.getStorageSync(app.config.tokenKey) + if (!token) { + loginInfo(app, (data) => { + if (data) { + this.getUserInfo() + this.getStaticsSum(); + this.getDataList(false); + } + }) + } else { + this.getUserInfo() + this.getStaticsSum(); + this.getDataList(false); + + } }, getUserInfo() { -- Gitblit v1.9.1