Vincent GUFFON %!s(int64=4) %!d(string=hai) anos
pai
achega
7cdfb7df39
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      components/Layout/Breadcrumbs.vue

+ 1 - 3
components/Layout/Breadcrumbs.vue

@@ -31,9 +31,7 @@
 
       const crumbs = computed(()=>{
         const fullPath = route.value.path
-        const params = fullPath.startsWith('/')
-          ? fullPath.substring(1).split('/')
-          : fullPath.split('/')
+        const params = fullPath.startsWith('/') ? fullPath.substring(1).split('/') : fullPath.split('/')
         const crumbs:Array<AnyJson> = []
         let path = ''
         params.forEach((param, index) => {