也没写什么,接口执行两遍为什么
mounted() {
this.getAfterSaleList();
},
methods: {
getAfterSaleList() {
let this_ = this;
$.ajax({
type: "get",
data: {
pageNumber: this_.pageNumber,
pageSize: this_.pageSize,
},
url: API.orderAfter.orderAfter,
dataType: "json",
beforeSend: function(XMLHttpRequest) {
XMLHttpRequest.setRequestHeader("token", storage.getToken());
},
async: false,
success: function(res) {
console.log(res)
if (res.status == 1) {
this_.orderAfterList = res.data.content;
this_.totalCount = res.data.totalCount
} else {
layer.msg(res.detail);
}
},
error: function(jqXHR) {
overdue(jqXHR)
}
});
},
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…