This commit is contained in:
2023-04-18 10:06:47 +08:00
parent 2d1e691f78
commit dc69438c65
2 changed files with 3 additions and 6 deletions

View File

@@ -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)