luolei 5 years ago
parent
commit
f26ab3977f
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/components/Preview.vue

+ 2 - 3
src/components/Preview.vue

@@ -160,7 +160,7 @@ export default {
             this.defaultWaring(res)
             this.defaultWaring(res)
           }
           }
         }).catch((err)=>{
         }).catch((err)=>{
-          this.defaultWaring(res)
+          this.defaultWaring(err)
         })
         })
         return;
         return;
       } else {//没有图片直接保存数据
       } else {//没有图片直接保存数据
@@ -233,11 +233,10 @@ export default {
           this.defaultWaring(res)
           this.defaultWaring(res)
         }
         }
       }).catch((err)=>{
       }).catch((err)=>{
-          this.defaultWaring(res)
+          this.defaultWaring(err)
         })
         })
     },
     },
     defaultWaring(res){
     defaultWaring(res){
-      alert(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