root 2 年之前
父節點
當前提交
60dcc0d21a
共有 1 個文件被更改,包括 4 次插入1 次删除
  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,