ソースを参照

抓取部分更新

guhongwei 5 年 前
コミット
d5c809d981
1 ファイル変更5 行追加2 行削除
  1. 5 2
      src/views/index/index.vue

+ 5 - 2
src/views/index/index.vue

@@ -6,6 +6,8 @@
         :topInfo="site"
         :notice="notice"
         :news="news"
+        :enterList="self1List"
+        :danweiList="self2List"
         :talksList="talksList"
         :talksoutList="talksOutList"
         :fairsList="jobfairList"
@@ -194,9 +196,10 @@ export default {
         }
         let object = { ...JSON.parse(JSON.stringify(item)), infoList: arr, column: colObject };
         this.$set(this, `notice`, object);
-      } else if (item.category === '"self1"') {
+      } else if (item.category === 'self1') {
         this.$set(this, `self1List`, item.children);
-      } else if (item.category === '"self2') {
+      } else if (item.category === 'self2') {
+        console.log(item.children);
         this.$set(this, `self2List`, item.children);
       }
     },