source:null,
cancelRequest(){
if(typeof this.source ==='function'){
this.source('终止请求')
}
},
getlist1(){
var CancelToken = this.$axios.CancelToken
this.cancelRequest();
let that = this
this.$axios({
method:'get',
url:`xxxxxxx`,
params:{
},
cancelToken: new this.$axios.CancelToken(function executor(c) {
that.source = c
}),
}).then(res=>{
})
},