This commit is contained in:
Archer
2024-06-12 15:17:21 +08:00
committed by GitHub
parent bc6864c3dc
commit d0085a23e6
61 changed files with 558 additions and 348 deletions

View File

@@ -39,7 +39,10 @@ function ManageModal({ onClose }: ManageModalProps) {
const { mutate: onUpdate, isLoading: isUpdating } = useRequest({
mutationFn: ({ tmbId, per }: { tmbId: string; per: PermissionValueType }) => {
return onUpdateCollaborators([tmbId], per);
return onUpdateCollaborators({
tmbIds: [tmbId],
permission: per
});
},
successToast: '更新成功',
errorToast: 'Error'