lloydzhou há 1 ano atrás
pai
commit
49151dabf5
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/store/sd.ts

+ 1 - 1
app/store/sd.ts

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