From 4404bcded7bf7f93d2bd017a473bff82c3252a54 Mon Sep 17 00:00:00 2001 From: Hermes CI Fix Date: Thu, 23 Jul 2026 17:06:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=B0=E5=9B=BE=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=8E=BB=E6=8E=89ElMessageBox=E7=A1=AE=E8=AE=A4(=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E5=92=8Cel-dialog=E5=90=8C=E6=A0=B7=E9=97=AE=E9=A2=98?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/MapList.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/MapList.vue b/frontend/src/views/MapList.vue index c15decf4..c19182fb 100644 --- a/frontend/src/views/MapList.vue +++ b/frontend/src/views/MapList.vue @@ -124,12 +124,11 @@ function editMap(map: any) { function handleClick(path: string) { window.location.href = path } async function deleteMap(map: any) { try { - await ElMessageBox.confirm(`确定删除「${map.title}」?`) - await mapApi.delete ? await mapApi.delete(map.id) : ElMessage.warning("当前API不支持删除") + await mapApi.delete(map.id) ElMessage.success("已删除") load() } catch (e: any) { - if (e !== "cancel") ElMessage.error("删除失败") + ElMessage.error("删除失败") } }