This commit is contained in:
2026-04-14 11:41:33 +08:00
parent be4f296a35
commit e7fbb06041

View File

@@ -588,8 +588,8 @@ export const isJSONFun = (str: any) => {
// 删除无用附件文件
export const removeAttachmentFileIds = (oldIds: string, newIds: any) => {
const oldList = oldIds.split(',');
const newList = newIds.split(',');
const oldList = oldIds?.split(',') || [];
const newList = newIds?.split(',') || [];
const newSet = new Set(newList);
const delIds: any[] = oldList.filter((id) => !newSet.has(id));
delIds.forEach((id: any) => {