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