登录
This commit is contained in:
@@ -58,9 +58,9 @@ export default {
|
||||
if (this.memberName) {
|
||||
obj = Object.assign({}, res.result.user.user, {token: res.token, loginname: this.loginname})
|
||||
} else {
|
||||
obj = Object.assign({}, res.result.user.user, {token: res.token, loginname: ''})
|
||||
obj = Object.assign({}, res.result.user.user, {token: res.result.token, loginname: ''})
|
||||
}
|
||||
this.$store.dispatch('userInfo', JSON.stringify(obj))
|
||||
this.$store.dispatch('setUserInfo', JSON.stringify(obj))
|
||||
this.$router.push('/home')
|
||||
} else {
|
||||
this.toast(res.desc)
|
||||
|
||||
Reference in New Issue
Block a user