From 864e353a93b46dc77eeff99687239965ed9a76d7 Mon Sep 17 00:00:00 2001 From: hujunpeng Date: Fri, 28 Mar 2025 16:31:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E8=AF=95=E5=AE=89=E6=8E=92=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E6=A0=A1=E9=AA=8C=E4=BB=A3=E7=A0=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/exam-online/compoents/ExamListPage.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/packages/examination/src/views/exam-online/compoents/ExamListPage.tsx b/packages/examination/src/views/exam-online/compoents/ExamListPage.tsx index 910e18e..2b64dde 100644 --- a/packages/examination/src/views/exam-online/compoents/ExamListPage.tsx +++ b/packages/examination/src/views/exam-online/compoents/ExamListPage.tsx @@ -202,9 +202,17 @@ const ExamListPage = ({ history }: { history: any }) => { // 编辑 const handleEdit = (examId: number) => { - history.push({ - pathname: '/exam-edit', - state: { examId }, + Modal.confirm({ + title: `确认修改`, + content: `是否修改试卷?`, + onOk: () => { + history.push({ + pathname: '/exam-edit', + state: { examId }, + }); + }, + onCancel: () => { + }, }); };