DESKTOP-SVI9JE1\muzen пре 1 година
родитељ
комит
37308bc6ea
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      src/views/operation/recommend/index.vue

+ 3 - 2
src/views/operation/recommend/index.vue

@@ -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 = []
           })