mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 12:57:25 +08:00
update using indexdb read sd image data
This commit is contained in:
@@ -92,12 +92,11 @@ export const useSdStore = createPersistStore<
|
||||
return;
|
||||
}
|
||||
if (resData.finish_reason === "SUCCESS") {
|
||||
const imgId = nanoid();
|
||||
db.add({ id: data.id, data: resData.image });
|
||||
this.updateDraw({
|
||||
...data,
|
||||
status: "success",
|
||||
img_data: `indexeddb://${StoreKey.SdList}@${imgId}`,
|
||||
img_data: `indexeddb://${StoreKey.SdList}@${data.id}`,
|
||||
});
|
||||
} else {
|
||||
this.updateDraw({
|
||||
|
Reference in New Issue
Block a user