problem description
I have no problem writing this on my own computer, but there is a problem in the test. I looked up the information and said to add a catch, but can my request still return the data I want?
the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)
var jsondata=JSON.stringify(dataInfo);
this.hide=true;
this.$http.post(seajs.data.base +"price/calcAmount.do?custId="+this.custId, jsondata, {emulateJSON: false}).then(
data => {
if(data.data.code==200){
this.total=data.data.data.total;
this.postInfo=data.data.data.dataList;
console.log(data.data);
}else{
this.$Message.info(data.data.msg);
return false;
}
}
).catch(e){
console.log(e);
};