SoFunction
Updated on 2025-04-04

Detailed explanation of the changes in the defined variables in the $store in the component monitoring component of vue

// 1. Use computed attributes to get the value in $store

computed: {
  listenstage() {
    return this.$;
  }
 },

// 2. Check the change of the value obtained by defining the calculated attribute through watch

watch:{
  listenstage: function(ov,nv){
   ('watch start……');
   if(this.$){
      //Business Processing    }
   }
   ('watch stop……');
  }
 },

The above detailed explanation of the changes in the variables defined in the $store in the above vue component monitoring is all the content I have shared with you. I hope you can give you a reference and I hope you can support me more.