isLoading: false
pullData () {
if (this.isLoading) {
return
}
this.isLoading = true
getFieldPullData().then(res => {
this.isLoading = false
this.dataTime()
}).catch(() => {
this.isLoading = false
})
},
防止多次觸發,調用接口
isLoading: false
pullData () {
if (this.isLoading) {
return
}
this.isLoading = true
getFieldPullData().then(res => {
this.isLoading = false
this.dataTime()
}).catch(() => {
this.isLoading = false
})
},
防止多次觸發,調用接口