vue 同时监听多个对象

 computed: {
    infoChange() {
      const { currency, dateValue, termType } = this;
      return {
        currency,
        dateValue,
        termType
      };
    }
  },
  watch:{
    infoChange:{
      handler: function(val) {
        console.log(val)
        this.annualRate='';
        this.interestInfo()
      },
      deep: true
    },
  },

 

你可能感兴趣的:(web前端)