Ver código fonte

修改轮播

wangguoyu 4 anos atrás
pai
commit
4672a46be3
2 arquivos alterados com 2 adições e 2 exclusões
  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
       }),
                                                 ])