Commit 9d504117 authored by Facius's avatar Facius

登录也二次登录bug

parent ceb34753
...@@ -160,7 +160,7 @@ export default { ...@@ -160,7 +160,7 @@ export default {
login.signup(params).then(res => { login.signup(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res) { if (res) {
app.setUserData(res.data, that) login.setUserData(res.data, that)
app.track('signup_login', {mobile: res.data.mobile}); app.track('signup_login', {mobile: res.data.mobile});
app.profileSet(that) app.profileSet(that)
app.profileAppend(that) app.profileAppend(that)
...@@ -171,11 +171,11 @@ export default { ...@@ -171,11 +171,11 @@ export default {
title: '授权失败,请重新授权', title: '授权失败,请重新授权',
icon: 'none' icon: 'none'
}); });
this.setLoginStatus(false) that.setLoginStatus(false)
} }
}).catch(res => { }).catch(res => {
uni.hideLoading() uni.hideLoading()
this.setLoginStatus(false) that.setLoginStatus(false)
}) })
}, },
fail () { fail () {
......
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