|
|
|
@ -137,13 +137,20 @@ const user = {
|
|
|
|
|
const parentId=response.result.parentId; |
|
|
|
|
const puwwcId=response.result.puwwcId; |
|
|
|
|
const userInformation=response.result.userInfo; |
|
|
|
|
console.log('------>登录后的信息',response) |
|
|
|
|
//Vue.ls.set(USER_AUTH,authData);
|
|
|
|
|
sessionStorage.setItem(USER_AUTH,JSON.stringify(authData)); |
|
|
|
|
sessionStorage.setItem(SYS_BUTTON_AUTH,JSON.stringify(allAuthData)); |
|
|
|
|
sessionStorage.setItem(PARENT_ID,parentId); |
|
|
|
|
sessionStorage.setItem(PUWWC_Id,puwwcId); |
|
|
|
|
sessionStorage.setItem(USER_INFORMATION,JSON.stringify(userInformation)); |
|
|
|
|
if (!sessionStorage.getItem(PARENT_ID)){ |
|
|
|
|
sessionStorage.setItem(PARENT_ID,parentId); |
|
|
|
|
} |
|
|
|
|
if (!sessionStorage.getItem(PUWWC_Id)){ |
|
|
|
|
sessionStorage.setItem(PUWWC_Id,puwwcId); |
|
|
|
|
} |
|
|
|
|
if (Vue.ls.get(USER_INFO)){ |
|
|
|
|
sessionStorage.setItem(USER_INFORMATION,JSON.stringify(Vue.ls.get(USER_INFO))); |
|
|
|
|
}else { |
|
|
|
|
sessionStorage.setItem(USER_INFORMATION,JSON.stringify(userInformation)); |
|
|
|
|
} |
|
|
|
|
sessionStorage.setItem('ASIDE_MEAN',JSON.stringify(menuData)); |
|
|
|
|
if (menuData && menuData.length > 0) { |
|
|
|
|
//update--begin--autor:qinfeng-----date:20200109------for:JEECG-63 一级菜单的子菜单全部是隐藏路由,则一级菜单不显示------
|
|
|
|
|