瀏覽代碼

电签签名

ZaiZai 10 月之前
父節點
當前提交
b4317bb16b
共有 2 個文件被更改,包括 8 次插入1 次删除
  1. 1 0
      src/config/index.json
  2. 7 1
      src/views/certificate/lists/addList.vue

+ 1 - 0
src/config/index.json

@@ -2,6 +2,7 @@
   "target1": "http://39.108.216.210:8090",
   "target2": "http://127.0.0.1:8090",
   "target": "http://192.168.0.196:8090",
+  "target4": "http://192.168.0.109:8090",
   "dev": {
     "port": 1888
   },

+ 7 - 1
src/views/certificate/lists/addList.vue

@@ -668,7 +668,13 @@ export default {
       const file = form.signatureFileUrl[0].raw
       if (!file) return false
       let fromData = new FormData();
-      fromData.append('file', file);
+      if (typeof file === 'object') {
+        fromData.append('file', file);
+        fromData.append('fileStr', null);
+      } else {
+        fromData.append('file', null);
+        fromData.append('fileStr', file);
+      }
       fromData.append('wide', form.wide);
       fromData.append('high', form.high);
       const { data: res } = await prePicture(fromData)