diff --git a/src/components/Trumbs/index.vue b/src/components/Trumbs/index.vue index 46cfd5d..deffcd1 100644 --- a/src/components/Trumbs/index.vue +++ b/src/components/Trumbs/index.vue @@ -31,7 +31,7 @@ (props.isCase ? case_detail_img_data[industry_id] : hard_img_data[hardware_id] - )?.length > 7 && sw.activeIndex != 0 + )?.length > 7 && sw?.activeIndex != 0 " >
7 && !sw.isEnd + )?.length > 7 && !sw?.isEnd " >
@@ -65,15 +65,15 @@ import 'swiper/css/navigation' // import required modules import { FreeMode, Navigation } from 'swiper' const preSwiper = () => { - const { activeIndex } = sw.value + const { activeIndex } = sw.value || {} if (activeIndex != 0) { - sw.value.slidePrev(500, false) + sw.value?.slidePrev(500, false) } } const nextSwiper = () => { - const { isEnd } = sw.value + const { isEnd } = sw.value || {} if (!isEnd) { - sw.value.slideNext(500, false) + sw.value?.slideNext(500, false) } } const detailStore = useDetailStore() diff --git a/stats.html b/stats.html index 9681d7c..18b9774 100644 --- a/stats.html +++ b/stats.html @@ -6157,7 +6157,7 @@ var drawChart = (function (exports) {