热门
上面报错的意思是需要的是对象,实际得到的是数组
改正:把数组类型改为对象就可以了
获取数据的代码为
this.update = response.data;
改为:
this.update = response.data[0];