提交 282929ed authored 作者: quanlili's avatar quanlili

修改用户管理进行的注释

上级 6cc95ff9
...@@ -437,14 +437,14 @@ export default { ...@@ -437,14 +437,14 @@ export default {
operationMsg.apply(this,[res.data.code,'用户信息修改']) operationMsg.apply(this,[res.data.code,'用户信息修改'])
res.data.code === 0 ? this.dialogFormVisible = false : true res.data.code === 0 ? this.dialogFormVisible = false : true
this.$refs.tree.setCheckedKeys([]); this.$refs.tree.setCheckedKeys([]);
if(tempData.password&&tempData.userId==this.userId){ if(tempData.password&&tempData.userId==this.userId){//修改了登录者本人的密码时
this.$store.dispatch("FedLogOut").then(res => { this.$store.dispatch("FedLogOut").then(res => {
if (res) { if (res) {
location.reload(); location.reload();
} }
}); });
} }
if(tempData.userId==this.userId){ if(tempData.userId==this.userId){//修改了本人的信息,重新更新cookies
Cookies.set('img',tempData.img); Cookies.set('img',tempData.img);
Cookies.set('email',tempData.email); Cookies.set('email',tempData.email);
Cookies.set('username',tempData.userName); Cookies.set('username',tempData.userName);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论