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

于是 我就

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);

Logo

前往低代码交流专区

更多推荐