root 2 years ago
parent
commit
60dcc0d21a
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/components/App.tsx

+ 4 - 1
src/components/App.tsx

@@ -4529,8 +4529,11 @@ class App extends React.Component<AppProps, AppState> {
     // }
     //
     //此处改成亚马逊上传后返回
+    //const dataURL =
+    //  this.files[fileId]?.dataURL || (await getDataURL(imageFile));
+
     const dataURL =
-      this.files[fileId]?.dataURL || (await getDataURL(imageFile));
+      this.files[fileId]?.dataURL || (await Upload_AWS(imageFile));
 
     const imageElement = mutateElement(
       _imageElement,