数据资产登记更新
Showing
3 changed files
with
2 additions
and
9 deletions
| ... | @@ -33,13 +33,6 @@ export const getSystemMenu = (params) => { | ... | @@ -33,13 +33,6 @@ export const getSystemMenu = (params) => { |
| 33 | }); | 33 | }); |
| 34 | }; | 34 | }; |
| 35 | 35 | ||
| 36 | export const getCurrentUserInfo = (tenantGuid) => { | ||
| 37 | return request({ | ||
| 38 | url: `${import.meta.env.VITE_APP_PERSONAL_URL}/staff/data/get-current-staff?tenantGuid=${tenantGuid}`, | ||
| 39 | method: "post", | ||
| 40 | }); | ||
| 41 | }; | ||
| 42 | |||
| 43 | // 获取当前用户对应的产品和菜单 | 36 | // 获取当前用户对应的产品和菜单 |
| 44 | export const getUserInfo = () => { | 37 | export const getUserInfo = () => { |
| 45 | return request({ | 38 | return request({ | ... | ... |
| ... | @@ -56,7 +56,7 @@ const useUserStore = defineStore( | ... | @@ -56,7 +56,7 @@ const useUserStore = defineStore( |
| 56 | currentTenantGuid.value = res.data.tenantInfoList && res.data.tenantInfoList.length ? res.data.tenantInfoList[0].guid : ''; | 56 | currentTenantGuid.value = res.data.tenantInfoList && res.data.tenantInfoList.length ? res.data.tenantInfoList[0].guid : ''; |
| 57 | localStorage.setItem('currentTenantGuid', currentTenantGuid.value); | 57 | localStorage.setItem('currentTenantGuid', currentTenantGuid.value); |
| 58 | let currentTenant = res.data.tenantInfoList?.[0]; | 58 | let currentTenant = res.data.tenantInfoList?.[0]; |
| 59 | getCurrentUserInfo(currentTenantGuid.value).then((res: any) => { | 59 | getCurrentUserInfo({tenantGuid: currentTenantGuid.value}).then((res: any) => { |
| 60 | console.log(res, 'getCurrentUserInfo'); | 60 | console.log(res, 'getCurrentUserInfo'); |
| 61 | if (res.code == '00000') { | 61 | if (res.code == '00000') { |
| 62 | localStorage.setItem('userData', JSON.stringify(res.data)); | 62 | localStorage.setItem('userData', JSON.stringify(res.data)); | ... | ... |
| ... | @@ -494,7 +494,7 @@ const addAssetTable = () => { | ... | @@ -494,7 +494,7 @@ const addAssetTable = () => { |
| 494 | 494 | ||
| 495 | onBeforeMount(() => { | 495 | onBeforeMount(() => { |
| 496 | // const currentTenantGuid = localStorage.getItem('currentTenantGuid'); | 496 | // const currentTenantGuid = localStorage.getItem('currentTenantGuid'); |
| 497 | // getCurrentUserInfo(currentTenantGuid).then((res: any) => { | 497 | // getCurrentUserInfo({tenantGuid: currentTenantGuid}).then((res: any) => { |
| 498 | // console.log(res, 'getCurrentUserInfo'); | 498 | // console.log(res, 'getCurrentUserInfo'); |
| 499 | // if (res.code == '00000') { | 499 | // if (res.code == '00000') { |
| 500 | // localStorage.setItem('userData', JSON.stringify(res.data)); | 500 | // localStorage.setItem('userData', JSON.stringify(res.data)); | ... | ... |
-
Please register or sign in to post a comment