From 5f2eb5547808fb6eb1205fc7f032be3cb14f8001 Mon Sep 17 00:00:00 2001 From: chenpei Date: Mon, 17 Aug 2026 11:56:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=97=E8=A1=A8=E5=B0=81=E9=9D=A2?= =?UTF-8?q?=E5=8E=BB=E9=87=8D=E6=94=B9=E4=B8=BA=E5=85=BC=E5=AE=B9=E5=BD=93?= =?UTF-8?q?=E5=89=8D=20TS=20=E7=9B=AE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/materials/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/materials/route.ts b/app/api/materials/route.ts index e38f546..65a8757 100644 --- a/app/api/materials/route.ts +++ b/app/api/materials/route.ts @@ -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(); if (coverMaterialIds.length > 0) {