后台接口返回数据是完整的,前台页面控制台看response后边总是少几个字符
地址栏直接访问接口返回数据正常,vue页面调接口就返回json数据不完整
相关代码
// 请把代码文本粘贴到下方(请勿用图片代替代码)
http://39.107.225.35:9999/faith/integrityDeal/getIntegrityDealList?pIndex=1&pSize=10&userId=&status=&realName=&pRealName=&staffId=30&accessToken=PShAONUwH5Kgwz2RgZvrQCY458SGbJVu 直接这样访问是正常的返回数据的,页面代码:
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);//此处打印data是null(返回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
}
}
})
},
正常应该是访问http://39.107.225.35:9999/faith/integrityDeal/getIntegrityDealList?pIndex=1&pSize=10&userId=&status=&realName=&pRealName=&staffId=30&accessToken=PShAONUwH5Kgwz2RgZvrQCY458SGbJVu 返回的完整数据,不知道什么原因造成的,可能是这个列表数据稍微多些,但感觉不至于差那几个字符吧