wangcz 7 anni fa
parent
commit
e97acee596
1 ha cambiato i file con 4 aggiunte e 5 eliminazioni
  1. 4 5
      components/home/Carousel.vue

+ 4 - 5
components/home/Carousel.vue

@@ -35,11 +35,10 @@
     computed: {
       banners () {
         if (this.$store.state.carousel.banners.data && this.$store.state.carousel.banners.data.data) {
-          let banner = this.$store.state.carousel.banners.data.data.slice()
-           banner.sort(function (a, b) {
-             return a.contentId - b.contentId
-           })
-          return banner
+           // banner.sort(function (a, b) {
+           //   return a.contentId - b.contentId
+           // })
+          return this.$store.state.carousel.banners.data.data.slice()
         } else {
           return ''
         }