vue循环向数组添加数据

2023-08-23  本文已影响0人  我叫杨毅
 const lists = response.rows;
        this.outInSerialList = lists.map((item) => {
          let totalPrice1 = item.operateQty * item.unitPrice;
          this.$set(item, "totalPrice", totalPrice1);
          return item;
        });
上一篇 下一篇

猜你喜欢

热点阅读