+ class="avatar"
+ >
+
@@ -155,6 +157,11 @@ export default {
};
getSystemUserInfoApi(requestData).then((res) => {
that.ruleForm = { ...res.result };
+ let originUserInfo = this.$store.state.userInfo;
+ that.$store.commit("setUserInfo", {
+ ...originUserInfo,
+ ...that.ruleForm
+ });
});
},
beforeAvatarUpload(file) {
@@ -252,7 +259,7 @@ export default {
width: 178px;
height: 178px;
display: block;
- .image-slot{
+ .image-slot {
width: 100%;
height: 100%;
display: flex;
diff --git a/src/views/workSpace/index.vue b/src/views/workSpace/index.vue
index be7f46ab..069de5a2 100644
--- a/src/views/workSpace/index.vue
+++ b/src/views/workSpace/index.vue
@@ -86,9 +86,6 @@ export default {
// this.selectGroupDialog = true;
// }
this.getGroupTreeData();
- if (!this.$store.state.userInfo.personMail) {
- this.checkInfoComplete();
- }
},
mounted() {
// 挂载后来给iframe传递菜单数据
@@ -102,26 +99,6 @@ export default {
iframe.removeEventListener("load", this.onIframeLoad);
},
methods: {
- checkInfoComplete() {
- this.$confirm(
- "系统检测到您未完善邮箱,请去后台中心完善,以免忘记密码时无法通过邮箱验证,导致重置密码失败!",
- "温馨提示",
- {
- confirmButtonText: "用户中心",
- cancelButtonText: "取消",
- type: "warning",
- }
- )
- .then(() => {
- this.$router.push("/userCenter/userConfig");
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消",
- });
- });
- },
// 查询全部模块
getModuleMenuList() {
getNewUserAllModulePageApi({