vue的v-for指令的使用
后台返回的产品类型的数据是这样的,但我要将其处理成这样的
vue的v-for指令的使用
这时我们可以使用v-for循环里面的数据,代码如下

   <el-table-column label="产品类型"  min-width="60">
                        <template slot-scope="scope">
                               <div v-for="(item,index) in scope.row.productType" :key="index">
                                <span>{{item.title}} </span>
                               </div>
                        </template>
   </el-table-column>

相关文章: