定义一个布尔类型到标志,处理中将起设置为true ,处理完改完false,逻辑:
data{
isInProcessing:false
}
//逻辑函数过程中:
if(isInProcessing){
return
}else{
this.data.isInProcessing=true
//............. (处理,掉接口...)
// 处理完 改为false
this.data.isInProcessing=false
}
浙公网安备 33010602011771号