Baozhangchao 3 年之前
父節點
當前提交
81d2fcfffe
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2
    2
      src/components/Swiper/index.vue
  2. 1
    1
      src/pages/IndexImage.vue

+ 2
- 2
src/components/Swiper/index.vue 查看文件

8
 
8
 
9
 <script>
9
 <script>
10
 import Swiper from 'swiper'
10
 import Swiper from 'swiper'
11
-// import SwiperCore, { Autoplay, Pagination } from 'swiper/core'
11
+import SwiperCore, { Autoplay, Pagination } from 'swiper/core'
12
 
12
 
13
-// SwiperCore.use([Autoplay, Pagination])
13
+SwiperCore.use([Autoplay, Pagination])
14
 
14
 
15
 export default {
15
 export default {
16
   name: 'Swiper',
16
   name: 'Swiper',

+ 1
- 1
src/pages/IndexImage.vue 查看文件

35
     return {
35
     return {
36
       swiperOptions: {
36
       swiperOptions: {
37
         autoplay: {
37
         autoplay: {
38
-          delay: 100
38
+          delay: 2500
39
         }
39
         }
40
       }
40
       }
41
     }
41
     }