Browse Source

修改轮播

wangguoyu 4 năm trước cách đây
mục cha
commit
4672a46be3
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  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
       }),
                                                 ])