Commit 3e841e57 authored by zhangyanni's avatar zhangyanni

用户信息

parent 1844366e
......@@ -202,7 +202,10 @@
},
//获取用户信息
getUserInfoFunc() {
getUserInfoFunc(flag) {
if(flag){
this.userInfo = JSON.parse(this.Base64.decode(window.sessionStorage.getItem("userInfo")));
}
if (this.userInfo) {
this.showNavFunc();
if (this.userInfo.locked == 1 && this.userInfo.empType!= 2) {
......@@ -297,7 +300,7 @@
window.sessionStorage.setItem("mobileIndex",-2)
}
globalMsg.$on("getUserInfo",()=>{
this.getUserInfoFunc();
this.getUserInfoFunc(1);
})
},
beforeDestroy () {
......
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