Commit c4a153b6 authored by 肖健's avatar 肖健

修复bug

parent 04cc6a51
...@@ -183,7 +183,11 @@ ...@@ -183,7 +183,11 @@
plugin.logout().then((res) => { plugin.logout().then((res) => {
console.jdLoginLog(res, 'logoutres'); console.jdLoginLog(res, 'logoutres');
uni.reLaunch({ uni.reLaunch({
url: '/pages/main' url: '/pages/main',
success: function(res) {
//重新设置tabbar为0
uni.setStorageSync('tabbar', 0)
}
}); });
}); });
}) })
......
...@@ -339,14 +339,11 @@ export default { ...@@ -339,14 +339,11 @@ export default {
}) })
return return
} }
if(this.disabledSubmit) {
this.receivedFailShow = true
return
}
}, },
getCode() { getCode() {
let that = this let that = this
that.checkLogin() that.checkLogin()
if(that.disabledSubmit) { if(that.disabledSubmit) {
return return
} }
...@@ -494,7 +491,10 @@ export default { ...@@ -494,7 +491,10 @@ export default {
that.checkLogin() that.checkLogin()
if(that.disabledSubmit) { if(that.disabledSubmit) {
this.receivedFailShow = true let token = uni.getStorageSync('userToken')
if(token) {
that.receivedFailShow = true
}
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment