|
@@ -6,7 +6,7 @@
|
|
|
<el-table-column width="80px">
|
|
|
<template slot-scope="scope">
|
|
|
<el-link v-if="scope.row.hidden" :underline="false" class="el-icon-arrow-right"
|
|
|
- @click="getList(scope.row, scope.$index)" />
|
|
|
+ @click="getList(scope.row, scope.row.index)" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="导航名称" align="center" prop="name" show-overflow-tooltip>
|
|
@@ -180,7 +180,8 @@ export default {
|
|
|
getTabList() {
|
|
|
tabList().then(res => {
|
|
|
if (res.code === 0) {
|
|
|
- res.data.map(i => {
|
|
|
+ res.data.map((i, index) => {
|
|
|
+ i.index = index
|
|
|
i.hidden = true
|
|
|
i.children = []
|
|
|
})
|