From d772bcf0343a0d4b3340a2ad959b27e10c3bef15 Mon Sep 17 00:00:00 2001 From: Hugo Delaunay Date: Sat, 6 Jan 2024 15:27:23 +0100 Subject: [PATCH] Correction de bugs. --- components/Page/Carousel/Carousel.vue | 4 ++-- components/SmartBanner/SmartBanner.vue | 24 ------------------- components/SmartBanner/SmartBannerContent.vue | 22 +++++++++++++++++ pages/cours/[level]/[lesson]/[[slug]].vue | 9 +++++++ plugins/bootstrap.client.ts | 9 ++++--- 5 files changed, 37 insertions(+), 31 deletions(-) diff --git a/components/Page/Carousel/Carousel.vue b/components/Page/Carousel/Carousel.vue index 7d4e89804..7414e7b0b 100644 --- a/components/Page/Carousel/Carousel.vue +++ b/components/Page/Carousel/Carousel.vue @@ -56,9 +56,9 @@ const root = ref() onMounted(async () => { await nextTick() // @ts-ignore - const bootstrap = await import('bootstrap') + const Carousel = useNuxtApp().$bootstrap.carousel // eslint-disable-next-line - new bootstrap.Carousel(root.value) + new Carousel(root.value) }) diff --git a/components/SmartBanner/SmartBanner.vue b/components/SmartBanner/SmartBanner.vue index 1e043bd38..7c51a2bec 100644 --- a/components/SmartBanner/SmartBanner.vue +++ b/components/SmartBanner/SmartBanner.vue @@ -39,27 +39,3 @@ const onClose = () => { @close="onClose" /> - - diff --git a/components/SmartBanner/SmartBannerContent.vue b/components/SmartBanner/SmartBannerContent.vue index 5b1e99be0..bccb3f4c3 100644 --- a/components/SmartBanner/SmartBannerContent.vue +++ b/components/SmartBanner/SmartBannerContent.vue @@ -70,6 +70,28 @@ const onClose = () => {