修改获取菜单时判断管理员的条件
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -61,7 +61,7 @@ const useUserStore = defineStore( | ... | @@ -61,7 +61,7 @@ const useUserStore = defineStore( |
| 61 | userName.value = res.data.staffName; | 61 | userName.value = res.data.staffName; |
| 62 | localStorage.setItem('userName', res.data?.staffName); | 62 | localStorage.setItem('userName', res.data?.staffName); |
| 63 | localStorage.setItem('userData', JSON.stringify(res.data)); | 63 | localStorage.setItem('userData', JSON.stringify(res.data)); |
| 64 | return getSystemMenu({ tenantGuid: currentTenantGuid.value }, res.data?.isAdmin == 'Y' && (!res.data?.superTubeFlag || res.data?.superTubeFlag == 'Y')).then((info: any) => { //解决页面调用流程接口传递staffGuid,为空的问题 | 64 | return getSystemMenu({ tenantGuid: currentTenantGuid.value }, res.data?.isAdmin == 'Y' && res.data?.superTubeFlag == 'Y').then((info: any) => { //解决页面调用流程接口传递staffGuid,为空的问题 |
| 65 | if (info.code == '00000') { | 65 | if (info.code == '00000') { |
| 66 | localStorage.setItem('userInfoData', JSON.stringify(info.data)); | 66 | localStorage.setItem('userInfoData', JSON.stringify(info.data)); |
| 67 | userInfoData.value = info.data; | 67 | userInfoData.value = info.data; | ... | ... |
-
Please register or sign in to post a comment