diff --git a/theme/src/client/features/components/Swiper.vue b/theme/src/client/features/components/Swiper.vue index f69a5e20..d08c1103 100644 --- a/theme/src/client/features/components/Swiper.vue +++ b/theme/src/client/features/components/Swiper.vue @@ -15,6 +15,7 @@ import { } from 'swiper/modules' import { Swiper, SwiperSlide } from 'swiper/vue' import { computed, onMounted } from 'vue' +import { withBase } from 'vuepress/client' import 'swiper/css' import 'swiper/css/navigation' @@ -68,8 +69,9 @@ const props = withDefaults(defineProps(), { const slideList = computed(() => { return props.items?.map((link) => { if (typeof link === 'string') - return { link } + return { link: withBase(link) } + link.link = withBase(link.link) return link }) ?? [] })