reactor:优化批量删除的代码,从 as number 变成 !
This commit is contained in:
@@ -64,7 +64,7 @@ function handleRowCheckboxChange({
|
||||
}: {
|
||||
records: SystemMailAccountApi.MailAccount[];
|
||||
}) {
|
||||
checkedIds.value = records.map((item) => item.id as number);
|
||||
checkedIds.value = records.map((item) => item.id!);
|
||||
}
|
||||
|
||||
/** 批量删除邮箱账号 */
|
||||
|
||||
@@ -76,7 +76,7 @@ function handleRowCheckboxChange({
|
||||
}: {
|
||||
records: SystemMailTemplateApi.MailTemplate[];
|
||||
}) {
|
||||
checkedIds.value = records.map((item) => item.id as number);
|
||||
checkedIds.value = records.map((item) => item.id!);
|
||||
}
|
||||
|
||||
/** 批量删除邮件模板 */
|
||||
|
||||
Reference in New Issue
Block a user