diff --git a/dolphinscheduler-ui-next/src/views/security/user-manage/components/use-authorize.ts b/dolphinscheduler-ui-next/src/views/security/user-manage/components/use-authorize.ts index 8c51ceb396..f12b6a3219 100644 --- a/dolphinscheduler-ui-next/src/views/security/user-manage/components/use-authorize.ts +++ b/dolphinscheduler-ui-next/src/views/security/user-manage/components/use-authorize.ts @@ -102,11 +102,11 @@ export function useAuthorize() { ]) state.loading = false state.authorizedUdfs = udfs[0].map( - (item: { name: string; id: number }) => item.id + (item: { funcName: string; id: number }) => item.id ) state.unauthorizedUdfs = [...udfs[0], ...udfs[1]].map( - (item: { name: string; id: number }) => ({ - label: item.name, + (item: { funcName: string; id: number }) => ({ + label: item.funcName, value: item.id }) ) @@ -202,7 +202,7 @@ export function useAuthorize() { if (type === 'authorize_udf') { await grantUDFFunc({ userId, - udfIds: state.authorizedUdfResources.join(',') + udfIds: state.authorizedUdfs.join(',') }) } if (type === 'authorize_resource') {