luolei 5 years ago
parent
commit
ea148678f7
1 changed files with 6 additions and 5 deletions
  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