From b509cc2bb2a2da7ae6cf83c9875c7a937544d7f9 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 11 Jul 2025 10:38:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BC=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/ModelManagePage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/ModelManagePage.tsx b/src/pages/ModelManagePage.tsx index e5d014e..04c2476 100644 --- a/src/pages/ModelManagePage.tsx +++ b/src/pages/ModelManagePage.tsx @@ -79,7 +79,8 @@ const ModelManagePage: React.FC = () => { } const handleDeleteModel = async (modelId: string) => { - if (!confirm('确定要删除这个模特吗?')) return + const isOk = confirm('确定要删除这个模特吗?') + if (!isOk) return try { const response = await ModelService.deleteModel(modelId)