当前位置:网站首页>Deep listening array deep listening watch

Deep listening array deep listening watch

2022-07-07 16:33:00 Starry dream

The value of an item in the listening object _Vue in watch Detailed usage _asta Xie's blog -CSDN Blog

 watch: {
    firstStepReturnData: {
      handler() {
        if (this.firstStepReturnData) {
          this.createForm.enterpriseName =
            this.firstStepReturnData.enterpriseName
        }
      },
      immediate: true,
      deep: true
    },
}

watch: {
    yearsList: {
      handler() {
        this.handleData();
      },
      immediate: true,
      deep: true,
    },
  },

原网站

版权声明
本文为[Starry dream]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071419294314.html