lifanagju_citu 5 tháng trước cách đây
mục cha
commit
345f297527
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/views/mall/home/components/carousel.vue

+ 1 - 1
src/views/mall/home/components/carousel.vue

@@ -22,7 +22,7 @@ const props = defineProps({ templateData: Object })
 
 const carouselList = ref([])
 const Carousel = props.templateData?.home?.components.find(item => item.id === 'Carousel')
-carouselList.value = Carousel.property.items
+carouselList.value = Carousel?.property?.items || []
 </script>
 
 <style scoped lang="scss">