|
@@ -159,13 +159,15 @@ export default {
|
|
|
if (res.code !== 0) {
|
|
|
return this.$message.error(res.msg);
|
|
|
}
|
|
|
- this.$store.state.user.id = res.data.id;
|
|
|
- this.$store.state.user.name = res.data.username;
|
|
|
- this.$store.state.user.realName = res.data.realName;
|
|
|
- this.$store.state.user.qualificationType = res.data.qualificationType;
|
|
|
- this.$store.state.user.superAdmin = res.data.superAdmin;
|
|
|
- this.$store.state.user.roleCodes = res.data.roleCodes;
|
|
|
- this.$store.state.user.enterpriseId=res.data.enterpriseId;
|
|
|
+ this.$store.state.user.id = res.data?.id;
|
|
|
+ this.$store.state.user.name = res.data?.username;
|
|
|
+ this.$store.state.user.realName = res.data?.realName;
|
|
|
+ this.$store.state.user.qualificationType = res.data?.qualificationType;
|
|
|
+ this.$store.state.user.superAdmin = res.data?.superAdmin;
|
|
|
+ this.$store.state.user.roleCodes = res.data?.roleCodes;
|
|
|
+ this.$store.state.user.enterpriseId=res.data?.enterpriseId;
|
|
|
+ this.$store.state.user.mobile=res.data?.mobile;
|
|
|
+ this.$store.state.user.roleCodes=res.data?.roleCodes;
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
},
|