1.在data定义一个变量 如:isSecondRequest:true
2.在提交的方法中写入
if(!this.isSecondRequest){
return
}
this.isSecondRequest=false
//接下来是axios的请求,当请求成功之后改变this.isSecondRequest的值
this.isSecondRequest=true
1.在data定义一个变量 如:isSecondRequest:true
2.在提交的方法中写入
if(!this.isSecondRequest){
return
}
this.isSecondRequest=false
//接下来是axios的请求,当请求成功之后改变this.isSecondRequest的值
this.isSecondRequest=true