From 32fb8d9b06a8eca06c376923a0926a30b6a77b3f Mon Sep 17 00:00:00 2001 From: Hermes CI Fix Date: Mon, 17 Aug 2026 09:44:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=88=98=E7=95=A5=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E4=BF=9D=E5=AD=98=E9=98=B2=E9=87=8D=20?= =?UTF-8?q?=E2=80=94=20=E6=8C=89=E9=92=AEloading=E9=98=B2=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E5=88=9B=E5=BB=BA(=E4=BF=AE=E5=A4=8D=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E4=BF=9D=E5=AD=989=E4=BB=BD)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/MapList.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/MapList.vue b/frontend/src/views/MapList.vue index c19182fb..980a3067 100644 --- a/frontend/src/views/MapList.vue +++ b/frontend/src/views/MapList.vue @@ -51,7 +51,7 @@ @@ -70,6 +70,7 @@ const showForm = ref(false) const editingMap = ref(null) const form = ref({}) const createMode = ref("blank") +const saving = ref(false) const selectedIds = ref([]) function onSelectionChange(rows: any[]) { @@ -96,6 +97,8 @@ function goCanvas(id: number) { router.push('/maps/canvas/' + id) } function goVersion(id: number) { router.push('/maps/versions/' + id) } async function saveMap() { + if (saving.value) return + saving.value = true try { if (editingMap.value) { await mapApi.update(editingMap.value.id, form.value) @@ -112,6 +115,8 @@ async function saveMap() { load() } catch (e) { ElMessage.error("操作失败") + } finally { + saving.value = false } }