mirror of
https://github.com/fanchenio/DawnLauncher.git
synced 2026-09-03 06:24:39 +08:00
修复批量删除项目失败的问题。
This commit is contained in:
@@ -332,9 +332,9 @@ function batchDel(idList: Array<number>) {
|
||||
// 参数
|
||||
let params = itemList.map((item) => item.id).join(",");
|
||||
// SQL
|
||||
let sql = `DELETE FROM ${tableName} WHERE id in (?)`;
|
||||
let sql = `DELETE FROM ${tableName} WHERE id in (${params})`;
|
||||
// 运行
|
||||
let res = db.prepare(sql).run(params).changes > 0;
|
||||
let res = db.prepare(sql).run().changes > 0;
|
||||
if (res) {
|
||||
// 提取分类ID
|
||||
let classificationIdList = new Set<number>();
|
||||
|
||||
Reference in New Issue
Block a user