|
@@ -270,7 +270,8 @@ const initScenesSwiper = () => {
|
|
|
// console.warn("initScenesSwiper");
|
|
|
nextTick(() => {
|
|
|
if (window.scenesNatSwiper) {
|
|
|
- window.scenesNatSwiper.slides.length > 0 && window.scenesNatSwiper.update();
|
|
|
+ window.scenesNatSwiper.slides.length > 0 &&
|
|
|
+ window.scenesNatSwiper.update();
|
|
|
window.scenesNatSwiper.slideReset();
|
|
|
// window.scenesNatSwiper = null;
|
|
|
} else {
|
|
@@ -288,8 +289,9 @@ const scenesSwiperFocus = () => {
|
|
|
);
|
|
|
if (window.scenesNatSwiper && window.scenesNatSwiper.slides.length > 0) {
|
|
|
const index = sceneIndex < 0 ? 0 : sceneIndex;
|
|
|
- console.warn("scenesSwiperFocus", index);
|
|
|
- window.scenesNatSwiper.slideTo(index);
|
|
|
+ const fIndex = index < 5 ? 1 : index;
|
|
|
+ console.warn("scenesSwiperFocus", fIndex);
|
|
|
+ window.scenesNatSwiper.slideTo(fIndex);
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -334,8 +336,6 @@ onMounted(() => {
|
|
|
watch(currentScenesList, () => {
|
|
|
initScenesSwiper();
|
|
|
});
|
|
|
-
|
|
|
-
|
|
|
});
|
|
|
</script>
|
|
|
|