Error: [$resource:badcfg] Error in resource configuration for action query
. Expected response to contain an array but got an object
The query() method requires the server to return an array type, while my backend returns an object containing pagination and other data, and the data member is the post list.
How can I solve this problem without modifying the server?
Done. Just add a parameter when instantiating the Post model. Wow hahaha
You can rewrite the query method, I already told you in the QQ group today
Isn’t it better to just use get?