diff --git a/apps/blogai/components/header.tsx b/apps/blogai/components/header.tsx index 8687514..f24a1cb 100644 --- a/apps/blogai/components/header.tsx +++ b/apps/blogai/components/header.tsx @@ -166,6 +166,9 @@ export function DetailPageHeader({ data }: { data: any }) { const [currentStatus, setCurrentStatus] = useState(""); // 当前部署状态:running / stopped const [switchLoading, setSwitchLoading] = useState(false); // 控制按钮 loading 状态 + const [downloadPercent, setDownloadPercent] = useState("0"); // 下载百分比(0 ~ 100) + const [showDownloadBar, setShowDownloadBar] = useState(false); + const socketRef = useRef(null); const { t } = useTranslation(); @@ -551,11 +554,12 @@ export function DetailPageHeader({ data }: { data: any }) { )} */} - {!data?.model_parameter && ( + {/* {!data?.model_parameter && ( + )} */} + + + {!data?.model_parameter && ( +
+ {/* 下载按钮 */} + + + {/* 下载进度条(紧贴按钮) */} + {showDownloadBar && ( +
+
+
+ )} +
)}