vue vl-input 对象新增的字段 v-model参数无法修改

vue yekong 1105℃

vue

 <el-input
                  v-model="scope.row.discount"
                  type="number"
                  @input="updateTotal($event)"
                  @change="getprice"
                />

无法在el-input中修改

    getdata1(e) {
      var that = this
      var data = e
      data.discount = 10
      data.num = 1
      data.remark = ''
      that.tableData.push(data)
    },

可以在el-input中修改

getdata1(e) {
      var that = this
      var data = {
        ...e,
        discount: 10,
        num: 1,
        remark: '',
      }
      that.tableData.push(data)
    },
喜欢 (0)