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;