reactor:优化批量删除的代码,从 as number 变成 !
This commit is contained in:
@@ -118,7 +118,7 @@ async function handleDelete(row: InfraJobApi.Job) {
|
||||
|
||||
const checkedIds = ref<number[]>([]);
|
||||
function handleRowCheckboxChange({ records }: { records: InfraJobApi.Job[] }) {
|
||||
checkedIds.value = records.map((item) => item.id as number);
|
||||
checkedIds.value = records.map((item) => item.id!);
|
||||
}
|
||||
|
||||
/** 批量删除任务 */
|
||||
|
||||
Reference in New Issue
Block a user