fix: 【infra 基础设施】代码生成修复批量删除后 checkedIds 未重置的问题

This commit is contained in:
puhui999
2025-08-09 12:29:27 +08:00
parent 60e5f2b542
commit ccfc5e18cc
2 changed files with 2 additions and 0 deletions

View File

@@ -170,6 +170,7 @@
await this.#[[$modal]]#.confirm('是否确认删除?')
try {
await ${simpleClassName}Api.delete${subSimpleClassName}List(this.checkedIds);
this.checkedIds = [];
await this.getList();
this.#[[$modal]]#.msgSuccess("删除成功");
} catch {}

View File

@@ -338,6 +338,7 @@ export default {
await this.#[[$modal]]#.confirm('是否确认删除?')
try {
await ${simpleClassName}Api.delete${simpleClassName}List(this.checkedIds);
this.checkedIds = [];
await this.getList();
this.#[[$modal]]#.msgSuccess("删除成功");
} catch {}