From 7a5f4f13e7216a5e5726e85b423f0b45e9b86619 Mon Sep 17 00:00:00 2001 From: ray <1490493387@qq.com> Date: Mon, 16 Sep 2024 20:13:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20vue=20=E6=A8=A1=E6=9D=BF=E5=88=A0?= =?UTF-8?q?=E9=99=A4id=E9=87=8D=E5=A4=8D=E5=A3=B0=E6=98=8E=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/templates/codegen/index.vue.vm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/templates/codegen/index.vue.vm b/src/main/resources/templates/codegen/index.vue.vm index 14153069..b97d6a68 100644 --- a/src/main/resources/templates/codegen/index.vue.vm +++ b/src/main/resources/templates/codegen/index.vue.vm @@ -100,7 +100,7 @@ 删除 @@ -254,7 +254,7 @@ const dataFormRef = ref(ElForm); const loading = ref(false); - const ids = ref([]); + const removeIds = ref([]); const total = ref(0); const queryParams = reactive<${entityName}PageQuery>({ @@ -307,7 +307,7 @@ /** 行复选框选中记录选中ID集合 */ function handleSelectionChange(selection: any) { - ids.value = selection.map((item: any) => item.id); + removeIds.value = selection.map((item: any) => item.id); } /** 打开$!{businessName}弹窗 */ @@ -360,7 +360,7 @@ /** 删除$!{businessName} */ function handleDelete(id?: number) { - const ids = [id || ids.value].join(","); + const ids = [id || removeIds.value].join(","); if (!ids) { ElMessage.warning("请勾选删除项"); return;