从后台取数据 返回0条数据 postman测试接口是0条数据 但是 另一个页面却把这个接口的数据拿到了 其他页面拿不到
取得0条数据
{result: Array(0)}
result: []
__proto__: Object
另一个页面取得完整数据
Object
result: Array(10)
0: {categoryId: 0, category: "电视", titleId: 0, _id: "5806e6ea48985cb016b082e8", __v: 0}
1: {categoryId: 1, category: "空调", titleId: 0, _id: "5806e6ea48985cb016b082e9", __v: 0}
2: {categoryId: 2, category: "影院", titleId: 0, _id: "5806e6ea48985cb016b082ea", __v: 0}
3: {categoryId: 3, category: "冰箱", titleId: 0, _id: "5806e6ea48985cb016b082eb", __v: 0}
4: {categoryId: 4, category: "DVD", titleId: 0, _id: "5806e6ea48985cb016b082ec", __v: 0}
5: {categoryId: 5, category: "音响/音箱", titleId: 0, _id: "5806e6ea48985cb016b082ed", __v: 0}
6: {categoryId: 6, category: "洗衣机", titleId: 0, _id: "5806e6ea48985cb016b082ee", __v: 0}
7: {categoryId: 7, category: "热水器", titleId: 0, _id: "5806e6ea48985cb016b082ef", __v: 0}
8: {categoryId: 8, category: "酒柜/冰吧/冷柜", titleId: 0, _id: "5806e6ea48985cb016b082f0", __v: 0}
9: {categoryId: 9, category: "消毒柜/洗碗机", titleId: 0, _id: "5806e6ea48985cb016b082f1", __v: 0}
length: 10
__proto__: Array(0)
为什么同一个接口一个请求可以取到完整数据 另一个请求取得数据为0条啊??
谢谢!!
猜测应该是http协议头 你们有什么约定吧