From 64d0d1bb1862cffd380fe873be89814f223afa31 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 14 Jun 2022 09:49:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=BB=84=E4=BB=B6=E8=87=AA?= =?UTF-8?q?=E9=80=82=E5=BA=94=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/login.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/pages/login.vue b/src/pages/login.vue index f0a59b7f..87b789de 100644 --- a/src/pages/login.vue +++ b/src/pages/login.vue @@ -59,12 +59,15 @@ export default { corpId = 'ww2a667717a70164f1' module = 'wangge' } + this.setModule(module) this.getToken({...this.form, module, corpId}).then(token => { - this.login(token) - if (module != 'AppCountryAlbum') { - this.getAccount({module}).then(() => this.setModule(module)) + if (token) { + this.login(token) + if (module != 'AppCountryAlbum') { + this.getAccount({module}) + } + this.target ? uni.reLaunch({url: this.target}) : uni.navigateBack({}) } - this.target ? uni.reLaunch({url: this.target}) : uni.navigateBack({}) }).catch(() => 0) } })