vue $set无效

我这个数组一开始没有单价到分摊优惠金额这些字段

于是 我就

this.$set(this.dataForm.paymentList, index, row);发现这样set整个list数组无效

正确方法set你对应一开始没有的字段

this.$set(row, "dealPrice", row.dealPrice);

            this.$set(row, "payment", row.payment);

            this.$set(row, "apportionFee", row.apportionFee);

            this.$set(row, "totalFee", row.totalFee);

发布了61 篇原创文章 · 获赞 33 · 访问量 13万+

猜你喜欢

转载自blog.csdn.net/qq_37588752/article/details/101380464