diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 95bd325..32c87c9 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -283,7 +283,9 @@ export default { this.$store .dispatch('user/loginByToken', { Token }).then(res => { if (res.length === 1) { - return this.loginByRole(res[0]) + return this.loginByRole({ + UserId: res[0].Id, UserTypeId: res[0].UserTypeId + }) } this.toggleRoleVisible = true }).catch(err => {