mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-17 06:23:44 +08:00
隐藏小警告
This commit is contained in:
@@ -37,7 +37,7 @@ import { removeImage } from "@/app/utils/chat";
|
|||||||
import { SideBar } from "./sd-sidebar";
|
import { SideBar } from "./sd-sidebar";
|
||||||
import { WindowContent } from "@/app/components/home";
|
import { WindowContent } from "@/app/components/home";
|
||||||
import { params } from "./sd-panel";
|
import { params } from "./sd-panel";
|
||||||
|
import Image from "next/image";
|
||||||
function getSdTaskStatus(item: any) {
|
function getSdTaskStatus(item: any) {
|
||||||
let s: string;
|
let s: string;
|
||||||
let color: Property.Color | undefined = undefined;
|
let color: Property.Color | undefined = undefined;
|
||||||
@@ -101,6 +101,8 @@ export function Sd() {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setSdImages(sdStore.draw);
|
setSdImages(sdStore.draw);
|
||||||
|
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [sdStore.currentId]);
|
}, [sdStore.currentId]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -158,7 +160,7 @@ export function Sd() {
|
|||||||
className={styles["sd-img-item"]}
|
className={styles["sd-img-item"]}
|
||||||
>
|
>
|
||||||
{item.status === "success" ? (
|
{item.status === "success" ? (
|
||||||
<img
|
<Image
|
||||||
className={styles["img"]}
|
className={styles["img"]}
|
||||||
src={item.img_data}
|
src={item.img_data}
|
||||||
alt={item.id}
|
alt={item.id}
|
||||||
|
|||||||
Reference in New Issue
Block a user