wangguoyu 4 年 前
コミット
4672a46be3
2 ファイル変更2 行追加2 行削除
  1. 1 1
      pages/courseware/index.vue
  2. 1 1
      pages/index.vue

+ 1 - 1
pages/courseware/index.vue

@@ -127,7 +127,7 @@
     async asyncData({ $axios, query }) {
       console.log('query2:', query);
       let [res1,res2] =  await Promise.all([
-                                             await $axios.$post(`/home/news/carousel`).then(res=>{
+                                             await $axios.$post(`/home/news/carousel`,{'newsClassifyId':2}).then(res=>{
                                                return res
                                              }),
                                            ])

+ 1 - 1
pages/index.vue

@@ -325,7 +325,7 @@
     async asyncData({ $axios, query }) {
       console.log('query2:', query);
       let [res1,res2] =  await Promise.all([
-      await $axios.$post(`/home/news/carousel`).then(res=>{
+      await $axios.$post(`/home/news/carousel`,{'newsClassifyId':1}).then(res=>{
         return res
       }),
                                                 ])