소스 검색

feat: fix scenesSwiperFocus 0

gemercheung 1 년 전
부모
커밋
025d4882ab
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      packages/qjkankan-view/src/components/UIGather/list.vue
  2. 1 1
      packages/qjkankan-view/src/components/UIGather/mobile/list.vue

+ 1 - 1
packages/qjkankan-view/src/components/UIGather/list.vue

@@ -314,7 +314,7 @@ const scenesSwiperFocus = () => {
   );
   if (window.scenesNatSwiper && window.scenesNatSwiper.slides.length > 0) {
     const index = sceneIndex < 0 ? 0 : sceneIndex;
-    const fIndex = index < 5 ? 1 : index;
+    const fIndex = index < 5 ? 0 : index;
     console.warn("scenesSwiperFocus", fIndex);
     window.scenesNatSwiper.slideTo(fIndex);
   }

+ 1 - 1
packages/qjkankan-view/src/components/UIGather/mobile/list.vue

@@ -289,7 +289,7 @@ const scenesSwiperFocus = () => {
   );
   if (window.scenesNatSwiper && window.scenesNatSwiper.slides.length > 0) {
     const index = sceneIndex < 0 ? 0 : sceneIndex;
-    const fIndex = index < 5 ? 1 : index;
+    const fIndex = index < 5 ? 0 : index;
     console.warn("scenesSwiperFocus", fIndex);
     window.scenesNatSwiper.slideTo(fIndex);
   }