diff --git a/src/assets/img/nopic.jpg b/src/assets/img/nopic.jpg index bbacbe5..129a7fa 100644 Binary files a/src/assets/img/nopic.jpg and b/src/assets/img/nopic.jpg differ diff --git a/src/components/common/Sidebar.vue b/src/components/common/Sidebar.vue index ae5a059..da4811c 100644 --- a/src/components/common/Sidebar.vue +++ b/src/components/common/Sidebar.vue @@ -135,7 +135,7 @@ export default { }, watch: { activeIndex(newValue) { - if (newValur != this.$route.path) { + if (newValue != this.$route.path) { this.activeIndex = this.$route.path; } }, diff --git a/src/views/components/carouselChart.vue b/src/views/components/carouselChart.vue index 4da5412..e402059 100644 --- a/src/views/components/carouselChart.vue +++ b/src/views/components/carouselChart.vue @@ -12,7 +12,12 @@ :key="item.id" > - + +
@@ -76,7 +81,13 @@ export default { spaceBetween: 10, //loop: true, freeMode: true, - // loopedSlides: 4, + loopedSlides: 4, + lazy: { + loadPrevNext: true, + loadPrevNextAmount: 1, + loadOnTransitionStart: true, + }, + lazyLoading: true, //懒加载开启 navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", @@ -87,9 +98,10 @@ export default { centeredSlides: true, slidesPerView: "auto", touchRatio: 0.2, + lazyLoading: true, //懒加载开启 slideToClickedSlide: true, //loop: true, - //loopedSlides: 4, + loopedSlides: 4, }, }; }, @@ -158,6 +170,7 @@ export default { img { width: 260px; height: 160px; + object-fit: fill; } } diff --git a/src/views/pictureRotation/index.vue b/src/views/pictureRotation/index.vue index 802f41e..26510f4 100644 --- a/src/views/pictureRotation/index.vue +++ b/src/views/pictureRotation/index.vue @@ -35,7 +35,8 @@
- + +
-
-
+
+
-
图片总数:{{ totalPic }}张
+
+ 图片总数:{{ totalPic }}张 +
@@ -296,6 +298,7 @@ export default { path: this.nopicPath, }, ]; + this.totalPic = 0; } else { this.terminalPhoto = res.data.list; this.totalPic = res.data.num;