the front end uses axios to send it to the back end, makes a decision, and returns the data to the front end. But alert cannot be used in axios. How to solve this problem? The
code is as follows:
axios.post("/router", formData
,config
).then(rst =>{
if(rst.status==0){
alert("wrong");
}else{
this.Show = true;
}
console.log(rst.data);
})
how to return to the front end and provide alert after the back-end check. The alert in this is completely useless.