数据更新了,视图不变化
methods: {
changeSpec(index, specIndex, item) {
const curItem = this.goodsParamList[index];
curItem.selectedIndex = specIndex;
this.$set(this.goodsParamList, index, curItem);
// 或 this.goodsParamList.splice(index, 1, curItem);
},
}
13 回答13.1k 阅读
7 回答2.3k 阅读
3 回答1.4k 阅读✓ 已解决
6 回答1.5k 阅读✓ 已解决
2 回答1.5k 阅读✓ 已解决
3 回答1.5k 阅读✓ 已解决
6 回答1.2k 阅读
再不行
上面的,再加下面的