data(){
    return {
    ...
    form: {
        id: '',
        itemId: '',
        stem: '',
        optionList: null
      },
    ...
    }
}

methods: {
    handleAddOption() {
      var newLine = {
        option: ''
      }
      this.form.optionList.push(newLine)
    },
    ...
}

解决:push的时候,optionList没有初始化,修改为optionList: []即可。

相关文章:

  • 2022-01-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2021-12-31
  • 2021-05-05
猜你喜欢
  • 2021-09-27
  • 2022-01-17
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-09
相关资源
相似解决方案