lrf402788946 5 years ago
parent
commit
d2c382b378
2 changed files with 6 additions and 4 deletions
  1. 2 2
      src/components/index.vue
  2. 4 2
      src/views/index.vue

+ 2 - 2
src/components/index.vue

@@ -51,9 +51,9 @@
             </el-col>
           </el-col>
         </div>
-        <el-col :span="24" class="main_5">
+        <!-- <el-col :span="24" class="main_5">
           <recruit :recruitList="recruitList" :zixunList="zixunList"></recruit>
-        </el-col>
+        </el-col> -->
         <div class="w_1270">
           <el-col :span="24" class="login">
             <login></login>

+ 4 - 2
src/views/index.vue

@@ -166,15 +166,17 @@ export default {
       if (result.errcode === 0) {
         let columns = result.data;
         for (const col of columns) {
+          console.log(col);
           if (col.type === 'content') {
             col.path = `/detail/${col.content_id}`;
+          } else if (col.type === 'bugList') {
+            console.log('in function:');
+            col.path = `/newsList/menu/${col.content_id}?title=${col.title}`;
           } else if (col.type !== 'url') {
             col.path = `/newsList/menu/${col.id}?title=${col.title}`;
             if (col.parent.includes('党员')) {
               col.path = `/memberList/menu/${col.id}?title=${col.title}`;
             }
-          } else if (col.type === 'bugList') {
-            col.path = `/newsList/menu/${col.content_id}?title=${col.title}`;
           }
         }
         return columns;