实例:

报错:Cannot read property 'itemGroupList' of undefined"

解决方法:在itemGroupList上一层判断一下父级元素

<div v-if="table2.itemCat">
   <div v-for="(itemgrounp,indexgrounp) in table2.itemCat.itemGroupList" :key="indexgrounp">
       <div>
           <div style="display:flex;juistify-content:flex-start;margin:10px">
           <span>分组名:</span>
           <el-input v-model="itemgrounp.group_name" placeholder="请输入分组名称" class="grounp_name"></el-input>
           <el-button @click="deleteBygroundid(indexgrounp)" type="danger" icon="el-icon-delete" style="height:40px;margin-left:15px" circle></el-button>
       </div>
   </div>
</div>

 

相关文章:

  • 2021-12-24
  • 2022-02-15
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-11
  • 2021-11-22
  • 2021-07-09
  • 2021-12-02
  • 2022-01-06
  • 2021-08-12
相关资源
相似解决方案