the data returned by the background API is complete, and there are always a few characters missing after viewing the response on the foreground page console
.the data returned by the direct access interface of the address bar is normal, but the json data is incomplete when the interface is called on the vue page.
related codes
/ / Please paste the code text below (do not replace the code with pictures)
it is normal for http://39.107.225.35:9999/faith/integrityDeal/getIntegrityDealList?pIndex=1&pSize=10&userId=&status=&realName=&pRealName=&staffId=30&accessToken=PShAONUwH5Kgwz2RgZvrQCY458SGbJVu to directly access the data in this way. Page code:
loadData () {
const _this = this
this.$httpReq({
url: this.$root.API_HOST + "faith/integrityDeal/getIntegrityDealList",
debug: true,
httpType: "get",
para: {
pIndex: _this.pagePara.searchPara.pIndex,
pSize: _this.pagePara.searchPara.pSize,
userId: _this.pagePara.searchPara.userId,
status: _this.pagePara.searchPara.status,
realName: _this.pagePara.searchPara.realName,
pRealName: _this.pagePara.searchPara.pRealName
},
callback(data) {
console.log(data);//datanull(json)
if(data.ecode != "000000"){
_this.$alert(data.emsg,"")
}else{
_this.pagePara.signPara.loading = false
_this.pageData.tableDataMain = data.result
_this.pageData.summaryData = data.summaryData
_this.pagePara.signPara.totalNum = data.totalNum
}
}
})
},
normally, you should access the complete data returned by http://39.107.225.35:9999/faith/integrityDeal/getIntegrityDealList?pIndex=1&pSize=10&userId=&status=&realName=&pRealName=&staffId=30&accessToken=PShAONUwH5Kgwz2RgZvrQCY458SGbJVu. I don"t know what caused it. It may be that there is a little more data in this list, but it doesn"t feel as bad as those characters
.