Error: [$resource:badcfg] Error in resource configuration for action query
. Expected response to contain an array but got an object
query()方法要求服务端返回的是array类型,而我的后端返回的是一个对象(object)包含分页等数据,data成员才是post列表。
请问在不修改服务端的情况下如何解决这个问题?
淡淡烟草味2017-05-15 16:55:15
Done. Just add a parameter when instantiating the Post model. Wow hahaha
大家讲道理2017-05-15 16:55:15
You can rewrite the query method, I already told you in the QQ group today