merge
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user