Vincent GUFFON 4 年之前
父節點
當前提交
7cdfb7df39
共有 1 個文件被更改,包括 1 次插入3 次删除
  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) => {