소스 검색

fix link responsive design

Vincent 1 년 전
부모
커밋
fb9e73d88f
1개의 변경된 파일8개의 추가작업 그리고 7개의 파일을 삭제
  1. 8 7
      components/Layout/Navigation/Md.vue

+ 8 - 7
components/Layout/Navigation/Md.vue

@@ -31,13 +31,12 @@
             class="icon"
           />
 
-          <AgendaLink href="/agenda-culturel">
-            <v-btn
-              icon="fas fa-calendar"
-              aria-label="L'agenda culturel"
-              class="icon"
-            />
-          </AgendaLink>
+          <v-btn
+            :href="runtimeConfig.public.agendaBaseUrl"
+            icon="fas fa-calendar"
+            aria-label="L'agenda culturel"
+            class="icon"
+          />
         </template>
       </v-app-bar>
 
@@ -83,6 +82,7 @@ import AgendaLink from '~/components/Common/AgendaLink.vue'
 import type { MainMenuItem } from '~/types/interface'
 
 const { mdAndDown } = useDisplay()
+const runtimeConfig = useRuntimeConfig()
 
 const props = defineProps({
   menu: {
@@ -96,6 +96,7 @@ const toggleMenu = () => {
   isMenuOpen.value = !isMenuOpen.value
 }
 
+
 const activeMenuIndex: Ref<number | null> = ref(null)
 
 const activeMenu = computed(() =>