SoFunction
Updated on 2025-04-07

vue forEach loop array to get the data you want

As shown below:

 <el-checkbox v-for="(item) in jurisdictionContent"
      :label=""
      :key=""
      class="checkboxMargin">
   <span>{{}}{{}}</span>
   </el-checkbox>
 handleJurisdiction(index, row) {//Get permission  =[];
  let me = this;
   = true;
   = ;
  this.$("/role/resources", {
   params: {roleId: }
   },
   {
   emulateJSON: true
   }).then((response) =&gt; {
    = ;
   (function (c) {
   if(c['checked']){
    ();
   }
   })
   ()
  })

v-for is used in the tag in vue, and forEach is used in the method.

The above method of getting the data you want in vue forEach loop array is all the content I share with you. I hope you can give you a reference and I hope you can support me more.