y595705120 2 недель назад
Родитель
Сommit
bb615f0e7e
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/containers/login/login.vue

+ 2 - 2
src/containers/login/login.vue

@@ -9,7 +9,7 @@
         <div class="category" style="height: 350px;overflow: hidden;">
           <div class="category-title">培训类别</div>
           <div class="category-tit clear">
-            <div class="btn-box" v-for="(item, index) in typeList" :key="index" v-show="item.isNew==0">
+            <div class="btn-box" v-for="(item, index) in typeList" :key="index" v-show="item.isOpen">
               <el-button @click="gotoCategory(item)" type="primary" style="width: 240px;font-size: 20px;">
                 {{ item.name }}
               </el-button>
@@ -193,7 +193,7 @@ export default {
       this.loginDialog = true
     },
     gotoCategory(item) {
-      this.$router.push({path: '/center/market', query: {type: item.label}})
+      this.$router.push({path: '/center/market', query: {type: item.name}})
     },
   },
 };