Browse Source

处理BUG

wangcz 7 years ago
parent
commit
e97acee596
1 changed files with 4 additions and 5 deletions
  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 ''
         }