|
|
|
@ -145,7 +145,7 @@ const ShareCollaborationModal: React.FC<ShareCollaborationModalProps> = ({
|
|
|
|
okButtonProps: { status: 'danger' },
|
|
|
|
okButtonProps: { status: 'danger' },
|
|
|
|
onOk: async () => {
|
|
|
|
onOk: async () => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const res: any = await deleteCollaborator({ id: collaboratorId });
|
|
|
|
const res: any = await deleteCollaborator(collaboratorId);
|
|
|
|
if (res.code === 200) {
|
|
|
|
if (res.code === 200) {
|
|
|
|
Message.success('移除协作者成功');
|
|
|
|
Message.success('移除协作者成功');
|
|
|
|
fetchCollaboratorList();
|
|
|
|
fetchCollaboratorList();
|
|
|
|
@ -180,7 +180,8 @@ const ShareCollaborationModal: React.FC<ShareCollaborationModalProps> = ({
|
|
|
|
Message.success('权限更新成功');
|
|
|
|
Message.success('权限更新成功');
|
|
|
|
fetchCollaboratorList();
|
|
|
|
fetchCollaboratorList();
|
|
|
|
onSuccess?.();
|
|
|
|
onSuccess?.();
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
Message.error(res.msg || '权限更新失败');
|
|
|
|
Message.error(res.msg || '权限更新失败');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (error) {
|
|
|
|
} catch (error) {
|
|
|
|
|