This commit is contained in:
lloydzhou
2024-07-16 23:18:34 +08:00
parent eb7c7cdcb6
commit 49151dabf5

View File

@@ -67,8 +67,8 @@ export const useSdStore = createPersistStore<
this.getNextId(); this.getNextId();
return; return;
} }
if (resData.finish_reason === "SUCCESS") {
const self = this; const self = this;
if (resData.finish_reason === "SUCCESS") {
uploadImage(base64Image2Blob(resData.image, "image/png")) uploadImage(base64Image2Blob(resData.image, "image/png"))
.then((img_data) => { .then((img_data) => {
console.debug("uploadImage success", img_data, self); console.debug("uploadImage success", img_data, self);