From 8f42fa3cb8acc3ada7caa0879f09d3a8a0c5f528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Wed, 11 Sep 2024 17:33:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AE=E6=92=AD=E5=9B=BE=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-carousel/index.vue | 4 ++-- src/components/model-carousel/model-carousel-styles.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/model-carousel/index.vue b/src/components/model-carousel/index.vue index ba706243..4fe56553 100644 --- a/src/components/model-carousel/index.vue +++ b/src/components/model-carousel/index.vue @@ -27,7 +27,7 @@
-
+
@@ -41,7 +41,7 @@
-
+
diff --git a/src/components/model-carousel/model-carousel-styles.vue b/src/components/model-carousel/model-carousel-styles.vue index 76a567dc..19f0849b 100644 --- a/src/components/model-carousel/model-carousel-styles.vue +++ b/src/components/model-carousel/model-carousel-styles.vue @@ -98,7 +98,7 @@ const state = reactive({ // 如果需要解构,确保使用toRefs const { form, new_content } = toRefs(state); -const is_video = computed(() => new_content.value.carousel_list.length > 0 && (new_content.value.carousel_list.findIndex((item: any) => item.carousel_video.length > 0)) > 0); +const is_video = computed(() => new_content.value.carousel_list.length > 0 && (new_content.value.carousel_list.findIndex((item: any) => item.carousel_video.length > 0)) != -1); // 图片圆角 const radius_change = (radius: any) => {