<el-tabs v-model="activeName1" ref="tabsRef" @tab-click="handleTesttab">
<el-tab-pane v-for="(item,index) in publicdata" :key="index" :name="item.label" lazy>
<span slot="label">{{ item.label }}
<!-- <el-badge v-if="isDisplay" :value="item.children.length"></el-badge> -->
</span>
<div class="indiv" v-for="(item1,index) in item.children" :key="index">
<el-button type="primary" style="margin-top:10px" @click="clickPublicData(item1)">{{item1.label}}</el-button>
</div>
</el-tab-pane>
</el-tabs>
看起来没问题啊