From 68ab717cb8ceebdb1273c28013b62be78cfba5b5 Mon Sep 17 00:00:00 2001 From: hh <2587203630@qq.com> Date: Thu, 16 Jul 2026 11:12:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B7=A5=E4=BD=9C=E5=8F=B0=E6=9C=80?= =?UTF-8?q?=E8=BF=91=E9=A1=B9=E7=9B=AE=E6=98=BE=E7=A4=BA=E5=95=86=E5=93=81?= =?UTF-8?q?=E4=B8=BB=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/routes/dashboard.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/frontend/src/routes/dashboard.tsx b/core/frontend/src/routes/dashboard.tsx index 7ae7f2b..d9a4fec 100644 --- a/core/frontend/src/routes/dashboard.tsx +++ b/core/frontend/src/routes/dashboard.tsx @@ -1,4 +1,5 @@ import { useEffect, useState } from "react"; +import type { CSSProperties } from "react"; import type { BillingSummary, Product, Project } from "../types"; import type { NavigateFn } from "./route-config"; import { api } from "../api"; @@ -30,6 +31,9 @@ function DashProgress({ project }: { project: Project }) { ); } +// 与「视频项目」共用项目列表返回的商品主图;空值继续走现有 9:16 占位图。 +const coverStyle = (url: string): CSSProperties => ({ ["--mock-media-url"]: `url(${url})` } as CSSProperties); + export function Dashboard({ products, projects, productTotal, projectTotal, billing, userName, loading = false, navigate, onCreateProduct }: { products: Product[]; projects: Project[]; @@ -105,7 +109,10 @@ export function Dashboard({ products, projects, productTotal, projectTotal, bill