|
@@ -1,6 +1,6 @@
|
|
|
const fs = window.nodeRequire("fs");
|
|
|
const path = window.nodeRequire("path");
|
|
|
-const crypto = window.nodeRequire("crypto");
|
|
|
+const crypto = window.require("crypto");
|
|
|
import { uploadFormalImage } from "../modules/client/api";
|
|
|
import { Message } from "element-ui";
|
|
|
|
|
@@ -10,7 +10,7 @@ import { Message } from "element-ui";
|
|
|
*/
|
|
|
function toUploadImg(options) {
|
|
|
const formData = new FormData();
|
|
|
- // frontFile,frontMd5,versoFile,versoMd5,taskId
|
|
|
+ // frontFile,frontMd5,versoFile,vers5,taskId
|
|
|
|
|
|
const { file: frontFile, md5: frontMd5 } = getFileAdnMd5(
|
|
|
options.frontOriginImgPath
|