我试图像这样从Web服务获取项目:
controlall = async() => {
try {
const a = await Axios({
method: 'post',
timeout: 1000 * 10,
headers: {
"Content-Type": "application/json"
},
url: url,
data: {
username: this.state.username,
password: this.state.password
}
})
.then((response) => console.log('re', response.data));
} catch (er) {
console.log('error', er);
}
}
当项目计数在100-250之间时,此服务效果很好。但是,如果项目计数超过300,则会出现标题错误。我该如何解决?