u
This commit is contained in:
1 parent
2f8a815c62
commit
a09fdf0a66
127 files changed
+4518
-1159
No files matched your search
@@ -133,20 +133,7 @@ async function submitForm(formEl: FormInstance | undefined) {
|
||||
if (res.isSuccess) {
|
||||
ElMessage.success('登录成功')
|
||||
|
||||
userStore.setUserInfo({
|
||||
user: {
|
||||
id: res.data.userId,
|
||||
name: res.data.userName,
|
||||
position: res.data.userPosition,
|
||||
role: res.data.userRole,
|
||||
},
|
||||
company: {
|
||||
id: res.data.companyId,
|
||||
logo: res.data.companyLogo,
|
||||
name: res.data.companyName,
|
||||
},
|
||||
token: res.data.token,
|
||||
})
|
||||
userStore.setLoginInfo(res.data)
|
||||
|
||||
router.push('/')
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user