vue踩过的坑

385 阅读1分钟

1、异步获取的数据,改变vue数组中的某一项的数据,改变不了,得用this.$set(this.staffList,index, res.data.data); //index是数组中的某一项