fix: 【infra 基础设施】代码生成修复批量删除后 checkedIds 未重置的问题
This commit is contained in:
@@ -170,6 +170,7 @@
|
|||||||
await this.#[[$modal]]#.confirm('是否确认删除?')
|
await this.#[[$modal]]#.confirm('是否确认删除?')
|
||||||
try {
|
try {
|
||||||
await ${simpleClassName}Api.delete${subSimpleClassName}List(this.checkedIds);
|
await ${simpleClassName}Api.delete${subSimpleClassName}List(this.checkedIds);
|
||||||
|
this.checkedIds = [];
|
||||||
await this.getList();
|
await this.getList();
|
||||||
this.#[[$modal]]#.msgSuccess("删除成功");
|
this.#[[$modal]]#.msgSuccess("删除成功");
|
||||||
} catch {}
|
} catch {}
|
||||||
|
|||||||
@@ -338,6 +338,7 @@ export default {
|
|||||||
await this.#[[$modal]]#.confirm('是否确认删除?')
|
await this.#[[$modal]]#.confirm('是否确认删除?')
|
||||||
try {
|
try {
|
||||||
await ${simpleClassName}Api.delete${simpleClassName}List(this.checkedIds);
|
await ${simpleClassName}Api.delete${simpleClassName}List(this.checkedIds);
|
||||||
|
this.checkedIds = [];
|
||||||
await this.getList();
|
await this.getList();
|
||||||
this.#[[$modal]]#.msgSuccess("删除成功");
|
this.#[[$modal]]#.msgSuccess("删除成功");
|
||||||
} catch {}
|
} catch {}
|
||||||
|
|||||||
Reference in New Issue
Block a user