From bdc694bb0ab9e2e4529872bd57970aaea9d582f6 Mon Sep 17 00:00:00 2001
From: maochaoying <925670706@qq.com>
Date: Wed, 12 Apr 2023 21:49:22 +0800
Subject: [PATCH] 123
---
src/components/Trumbs/index.vue | 12 ++++++------
stats.html | 2 +-
vite.config.js | 24 ++++++++++++------------
3 files changed, 19 insertions(+), 19 deletions(-)
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) {