root 2 years ago
parent
commit
06161c9b79
1 changed files with 12 additions and 0 deletions
  1. 12 0
      src/components/App.tsx

+ 12 - 0
src/components/App.tsx

@@ -4513,6 +4513,18 @@ class App extends React.Component<AppProps, AppState> {
       this.setImagePreviewCursor(resizedFile || imageFile);
     }
 
+    // console.log(this.files[fileId]);
+
+    // var dataURL = "";
+    // //此处改成亚马逊上传后返回
+    // if (this.files[fileId]?.dataURL) {
+    //   dataURL = this.files[fileId].dataURL;
+    // }
+    // else {
+    //   dataURL = (await getDataURL(imageFile));
+    // }
+
+    //此处改成亚马逊上传后返回
     const dataURL =
       this.files[fileId]?.dataURL || (await getDataURL(imageFile));