From 82f73ff7dee3b11610f9099ba0f6f9f12064b915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Fri, 13 Dec 2024 17:20:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AE=E6=92=AD=E5=9B=BE=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/carousel.vue | 2 +- components/diy/tabs-carousel.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/diy/carousel.vue b/components/diy/carousel.vue index 65c167b4..00b7ffe1 100644 --- a/components/diy/carousel.vue +++ b/components/diy/carousel.vue @@ -227,7 +227,7 @@ if (!this.propIsCommon) { return ''; } - if (!isEmpty(form.carousel_list[actived_index].style.background_img)) { + if (!isEmpty(form.carousel_list[actived_index]?.style?.background_img)) { return background_computer(form.carousel_list[actived_index].style); } return ''; diff --git a/components/diy/tabs-carousel.vue b/components/diy/tabs-carousel.vue index 5bdfb4dc..5dc8769f 100644 --- a/components/diy/tabs-carousel.vue +++ b/components/diy/tabs-carousel.vue @@ -170,7 +170,7 @@ return ''; }, get_swiper_bg_img_style(form, actived_index) { - if (!isEmpty(form.carousel_list[actived_index].style.background_img)) { + if (!isEmpty(form.carousel_list[actived_index]?.style?.background_img)) { return background_computer(form.carousel_list[actived_index].style); } return '';