Commit 78adffdf authored by super_liu's avatar super_liu

feat:登录session 添加 用户权限 access

parent d521e5a5
...@@ -87,6 +87,7 @@ export default { ...@@ -87,6 +87,7 @@ export default {
systemName: "天友-户型查询", systemName: "天友-户型查询",
avatar: null, avatar: null,
userName:'', userName:'',
access:'',
}; };
}, },
created() { created() {
...@@ -100,7 +101,9 @@ export default { ...@@ -100,7 +101,9 @@ export default {
if(res.code === '200'){ if(res.code === '200'){
this.avatar = res.data.headImg; this.avatar = res.data.headImg;
this.userName = res.data.realName this.userName = res.data.realName;
this.access = res.data.access;
sessionStorage.setItem('access',(this.access === undefined || this.access === null) ? '' : this.access);
} }
}).catch(() => { }).catch(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment