|
@@ -160,7 +160,7 @@ export default {
|
|
|
this.defaultWaring(res)
|
|
|
}
|
|
|
}).catch((err)=>{
|
|
|
- this.defaultWaring(res)
|
|
|
+ this.defaultWaring(err)
|
|
|
})
|
|
|
return;
|
|
|
} else {//没有图片直接保存数据
|
|
@@ -233,11 +233,10 @@ export default {
|
|
|
this.defaultWaring(res)
|
|
|
}
|
|
|
}).catch((err)=>{
|
|
|
- this.defaultWaring(res)
|
|
|
+ this.defaultWaring(err)
|
|
|
})
|
|
|
},
|
|
|
defaultWaring(res){
|
|
|
- alert(JSON.stringify(res))
|
|
|
this.$store.commit('handleToggleShow', false);
|
|
|
this.showType = 'fail'
|
|
|
this.submit = true
|