Vue.js watching deep properties

后端 未结 2 741
小蘑菇
小蘑菇 2020-12-21 09:35

I\'m trying to watch properties on a vue.js object, but i\'m not getting the result that i want, my code is the following:

var vueTable = new Vu         


        
2条回答
  •  悲&欢浪女
    2020-12-21 09:47

    You can use something with the looks of this

    this.$set(this.filters, 'name', "")

    Using $set (as described in https://vuejs.org/v2/guide/reactivity.html#Change-Detection-Caveats) the observable will be correctly added

提交回复
热议问题