From a277c1aed156788288061872ed5827d87b67d67e Mon Sep 17 00:00:00 2001 From: sijinhui Date: Thu, 25 Jul 2024 22:14:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E8=97=8F=E5=B0=8F=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/sd/sd.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/components/sd/sd.tsx b/app/components/sd/sd.tsx index f35d0e0cd..9e5595900 100644 --- a/app/components/sd/sd.tsx +++ b/app/components/sd/sd.tsx @@ -37,7 +37,7 @@ import { removeImage } from "@/app/utils/chat"; import { SideBar } from "./sd-sidebar"; import { WindowContent } from "@/app/components/home"; import { params } from "./sd-panel"; - +import Image from "next/image"; function getSdTaskStatus(item: any) { let s: string; let color: Property.Color | undefined = undefined; @@ -101,6 +101,8 @@ export function Sd() { useEffect(() => { setSdImages(sdStore.draw); + + // eslint-disable-next-line react-hooks/exhaustive-deps }, [sdStore.currentId]); return ( @@ -158,7 +160,7 @@ export function Sd() { className={styles["sd-img-item"]} > {item.status === "success" ? ( -