浏览代码

fix: breadcrumbs url formatting on 3rd level and higher + missing locale (#930)

NGPixel 5 年之前
父节点
当前提交
c83eb25514
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      client/themes/default/components/page.vue

+ 2 - 1
client/themes/default/components/page.vue

@@ -345,9 +345,10 @@ export default {
       }
     },
     breadcrumbs() {
+      console.info(this.locale)
       return [{ path: '/', name: 'Home' }].concat(_.reduce(this.path.split('/'), (result, value, key) => {
         result.push({
-          path: _.map(result, 'path').join('/') + `/${value}`,
+          path: _.get(_.last(result), 'path', `/${this.locale}`) + `/${value}`,
           name: value
         })
         return result