Commit f53fde14 authored by xiaoye's avatar xiaoye

优化重复选手文件

parent d732042d
Pipeline #39009 passed with stages
in 2 minutes and 36 seconds
...@@ -458,7 +458,8 @@ ...@@ -458,7 +458,8 @@
let del_list : Array<Participant> = []; let del_list : Array<Participant> = [];
// @ts-ignore // @ts-ignore
res.tempFiles.forEach(i => { res.tempFiles.forEach(i => {
const p = participant.array.filter(p => p.name == i.baseName.replace(/\.[^/.]+$/, "")); const name = i.name.replace(/\.[^/.]+$/, "");
const p = participant.array.filter(p => p.baseName == name || p.name == name);
del_list.push(...p); del_list.push(...p);
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment