luolei 5 년 전
부모
커밋
ea148678f7
1개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. 6 5
      src/components/Preview.vue

+ 6 - 5
src/components/Preview.vue

@@ -157,10 +157,10 @@ export default {
                 // alert('图片上传完成:'+dayDiff+'s')
             this.saveAllDate()
           } else {//提交失败提示
-            this.defaultWaring()
+            this.defaultWaring(res)
           }
         }).catch((err)=>{
-          this.defaultWaring()
+          this.defaultWaring(res)
         })
         return;
       } else {//没有图片直接保存数据
@@ -230,13 +230,14 @@ export default {
           this.showType = 'success'
           this.submit = true
         } else {
-          this.defaultWaring()
+          this.defaultWaring(res)
         }
       }).catch((err)=>{
-          this.defaultWaring()
+          this.defaultWaring(res)
         })
     },
-    defaultWaring(){
+    defaultWaring(res){
+      console.log(JSON.stringify(res))
       this.$store.commit('handleToggleShow', false);
       this.showType = 'fail'
       this.submit = true