Browse Source

fix breadcrum

Vincent 7 months ago
parent
commit
a4ffd495c7
1 changed files with 4 additions and 1 deletions
  1. 4 1
      components/Layout/SubHeader/Breadcrumbs.vue

+ 4 - 1
components/Layout/SubHeader/Breadcrumbs.vue

@@ -15,10 +15,13 @@ const router = useRouter()
 
 const items: ComputedRef<Array<AnyJson>> = computed(() => {
   const crumbs: Array<AnyJson> = []
+  const baseUrl =
+    runtimeConfig.baseUrlAdminLegacy ??
+    runtimeConfig.public.baseUrlAdminLegacy
 
   crumbs.push({
     title: i18n.t('welcome'),
-    href: UrlUtils.join(runtimeConfig.baseUrlAdminLegacy, '#', 'dashboard'),
+    href: UrlUtils.join(baseUrl, '#', 'dashboard'),
   })
 
   const pathPart: Array<string> = UrlUtils.split(router.currentRoute.value.path)