|
@@ -4505,14 +4505,15 @@ class App extends React.Component<AppProps, AppState> {
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
- window.console.log(imageFile);
|
|
|
+ window.console.log(showCursorImagePreview);
|
|
|
if (showCursorImagePreview) {
|
|
|
const dataURL = this.files[fileId]?.dataURL;
|
|
|
// optimization so that we don't unnecessarily resize the original
|
|
|
// full-size file for cursor preview
|
|
|
// (it's much faster to convert the resized dataURL to File)
|
|
|
+ window.console.log(dataURL);
|
|
|
const resizedFile = dataURL && dataURLToFile(dataURL);
|
|
|
-
|
|
|
+ window.console.log(resizedFile);
|
|
|
this.setImagePreviewCursor(resizedFile || imageFile);
|
|
|
}
|
|
|
|
|
@@ -4530,7 +4531,7 @@ class App extends React.Component<AppProps, AppState> {
|
|
|
//此处改成亚马逊上传后返回
|
|
|
const dataURL =
|
|
|
this.files[fileId]?.dataURL || (await Upload_AWS(imageFile));
|
|
|
- window.console.log(dataURL);
|
|
|
+
|
|
|
const imageElement = mutateElement(
|
|
|
_imageElement,
|
|
|
{
|