Vue 多子组件嵌套时可以多个watch 监听

watch: {
    uomData: {
      handler(newV, oldV) {
        console.log(newV)
        this.uomDataInner = newV
      },
      immediate: true,
      deep: true,
    },
  },

  

posted @ 2020-09-28 15:29  winyh  阅读(1098)  评论(0编辑  收藏  举报