Преглед изворни кода

feat: fix scenesSwiperFocus 0

gemercheung пре 1 година
родитељ
комит
025d4882ab

+ 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);
   }