fix: 列表封面去重改为兼容当前 TS 目标
This commit is contained in:
parent
8009c62868
commit
5f2eb55478
@ -679,7 +679,7 @@ export async function GET(request: NextRequest) {
|
||||
const taskPageMissingPreviewIds = materials
|
||||
.filter(m => m.materialType === '任务-页面' && !m.previewUrl && !m.videoCoverUrl)
|
||||
.map(m => m.id);
|
||||
const coverMaterialIds = [...new Set([...productPackageMaterialIds, ...taskPageMissingPreviewIds])];
|
||||
const coverMaterialIds = Array.from(new Set(productPackageMaterialIds.concat(taskPageMissingPreviewIds)));
|
||||
|
||||
const coverUrlMap = new Map<string, string | null>();
|
||||
if (coverMaterialIds.length > 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user