| | |
| | | |
| | | export function useUserInfoRoles({ userInfoId, userType, clientType }: UseUserInfoRolesOptions) { |
| | | const { data: userInfoRoles } = useQuery({ |
| | | queryKey: ['userServices/getUserInfoRoles'], |
| | | queryKey: ['userServices/getUserInfoRoles', userInfoId, userType, clientType], |
| | | queryFn: async () => { |
| | | let res = await userServices.getUserInfoRoles( |
| | | { |
| | | userInfoId: unref(userInfoId), |
| | | userType: userType, |
| | | clientType: clientType, |
| | | enterpriseType: EnumEnterpriseType.PartyA, |
| | | enterpriseType: EnumEnterpriseType.Supplier, |
| | | }, |
| | | { showLoading: false } |
| | | ); |