diff --git a/frontend/src/pages/approval/detail.tsx b/frontend/src/pages/approval/detail.tsx index 9c101d4..ff0cae1 100644 --- a/frontend/src/pages/approval/detail.tsx +++ b/frontend/src/pages/approval/detail.tsx @@ -543,16 +543,31 @@ export default function ApprovalDetail() { closeOnMaskClick={false} closeOnAction={false} onConfirm={handleConfirmApprove} - onClose={() => { - console.log('弹框关闭') - setCommentVisible(false) - }} onCancel={() => { console.log('弹框取消') setCommentVisible(false) }} - confirmText="确认" - cancelText="取消" + actions={[ + [ + { + key: 'cancel', + text: '取消', + onClick: () => { + console.log('点击取消按钮') + setCommentVisible(false) + } + }, + { + key: 'confirm', + text: '确认', + primary: true, + onClick: () => { + console.log('点击确认按钮') + handleConfirmApprove() + } + } + ] + ]} /> )