update 补全代码生成异步函数调用缺少 await

Signed-off-by: 这夏天依然平凡 <1822213252@qq.com>
This commit is contained in:
这夏天依然平凡 2025-06-30 08:40:56 +00:00 committed by Gitee
parent 90145fa53b
commit 8e82c7c5f0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 4 deletions

View File

@ -136,14 +136,14 @@ async function handleBatchDelete() {
// request
const { error } = await fetchBatchDelete${BusinessName}(checkedRowKeys.value);
if (error) return;
onBatchDeleted();
await onBatchDeleted();
}
async function handleDelete(#foreach($column in $columns)#if($column.isPk == '1')$column.javaField#end#end: CommonType.IdType) {
// request
const { error } = await fetchBatchDelete${BusinessName}([#foreach($column in $columns)#if($column.isPk == '1')$column.javaField#end#end]);
if (error) return;
onDeleted();
await onDeleted();
}
function edit(row: TableDataWithIndex<Api.$ModuleName.${BusinessName}>) {

View File

@ -127,14 +127,14 @@ async function handleBatchDelete() {
// request
const { error } = await fetchBatchDelete${BusinessName}(checkedRowKeys.value);
if (error) return;
onBatchDeleted();
await onBatchDeleted();
}
async function handleDelete(#foreach($column in $columns)#if($column.isPk == '1')$column.javaField#end#end: CommonType.IdType) {
// request
const { error } = await fetchBatchDelete${BusinessName}([#foreach($column in $columns)#if($column.isPk == '1')$column.javaField#end#end]);
if (error) return;
onDeleted();
await onDeleted();
}
function edit(#foreach($column in $columns)#if($column.isPk == '1')$column.javaField#end#end: CommonType.IdType) {