1cbd7fc6 by lihua

Merge branch 'develop' into release-test

2 parents 25364613 ce1a4de5
...@@ -25,10 +25,17 @@ export const refreshToken = (params) => { ...@@ -25,10 +25,17 @@ export const refreshToken = (params) => {
25 }) 25 })
26 } 26 }
27 27
28 export const getSystemMenu = (params) => { 28 /** 获取登录人员的菜单 */
29 export const getSystemMenu = (params, isAdmin) => {
29 return request({ 30 return request({
30 url: `${import.meta.env.VITE_APP_AUTH_URL 31 url:
31 }/product-menu-permission/tenant/get-product-menu?tenantGuid=${params.tenantGuid}&platformSystemGuid=32774fcfdf5e43e8b866660374d8bced`, 32 isAdmin == "Y"
33 ? `${
34 import.meta.env.VITE_APP_AUTH_URL
35 }/product-menu-permission/tenant/get-product-menu?tenantGuid=${params.tenantGuid}&platformSystemGuid=32774fcfdf5e43e8b866660374d8bced`
36 : `${
37 import.meta.env.VITE_APP_AUTH_URL
38 }/product-menu-permission/staff/get-product-menu-template?platformSystemGuid=32774fcfdf5e43e8b866660374d8bced`,
32 method: "get", 39 method: "get",
33 }); 40 });
34 }; 41 };
......
...@@ -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 }).then((info: any) => { //解决页面调用流程接口传递staffGuid,为空的问题 64 return getSystemMenu({ tenantGuid: currentTenantGuid.value }, res.data?.isAdmin).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;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!