From ca223ad7a26cc9af1ee9f2205f1dfb02281a2ddb Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Fri, 22 Jan 2021 11:09:33 +0800 Subject: [PATCH] no message --- pages/login/index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pages/login/index.js b/pages/login/index.js index 3bec633..319c82a 100644 --- a/pages/login/index.js +++ b/pages/login/index.js @@ -142,11 +142,7 @@ Page({ storage.put('Authorization', result.data.token) app.globalData.token = result.data.token this.data.form.tmpAuthToken = result.data.tmpAuthToken - if(e.currentTarget.id == 'btn-login'){ - this.registAccount() - } else { - this.fetchUserInfo() - } + this.fetchUserInfo(result.data.token) }).catch(error => { if(error.data && error.data.tmpAuthToken){ this.data.form.tmpAuthToken = error.data.tmpAuthToken