首页 > 技术文章 > form表单内部变化watch监听

wwj007 2020-09-01 16:50 原文

  watch: {
    form: {
      deep: true,
      handler(newval) {
        this.tzinfo = false
      }
    }
  },

//具体到表单内某个值

  watch: {
    'form.sfyj': {
      deep: true,
      handler(newval) {
        this.tzinfo = false
      }
    }
  },

推荐阅读