

When I tried to use getArticleList in main.js yesterday, the pageSize parameter was ignored and the function always returned 10 items in the JSON list. I wondered why, but couldn’t fix the error because it was late and I was too tired.
Today I found the reason: I hadn’t passed the correct parameter. As a result, getArticleList couldn’t receive it, so it returned the default number of items every time—10 objects of JSON data.
To resolve this problem, I uncommented the variable lists and passed it as a function parameter.

But this attempt didn’t work at all.

After examining ArticleService Axios.js, edited code like this.

This code return with JSON data well, but the pageSize ignored again.

Requested AI the reason of keep returning 10 objects of JSON data.

When you use fetch, fetch disregard {params: {page, pageSize, keyword}} this kind of object. So my solution had failed from the beginning.