Explorar el Código

又拍云错误status统计

Michael Wang hace 5 años
padre
commit
7309e7008f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/components/FaceRecognition/FaceRecognition.vue

+ 2 - 2
src/components/FaceRecognition/FaceRecognition.vue

@@ -339,14 +339,14 @@ export default {
             body: myFormData,
           });
           if (!res2.ok) {
-            throw "上传到云失败";
+            throw res2.status;
           }
         } catch (error) {
           window._hmt.push([
             "_trackEvent",
             "摄像头框",
             "抓拍照片保存失败--upyun",
-            error.name + ": " + error.message,
+            error,
           ]);
           throw error;
         }