mirror of
https://github.com/requarks/wiki.git
synced 2026-08-26 13:17:10 -05:00
fix: breadcrumb path generation
This commit is contained in:
@@ -540,7 +540,7 @@ export default {
|
||||
return [{ path: `/${this.locale}`, name: 'Home' }].concat(
|
||||
_.reduce(this.path.split('/'), (result, value) => {
|
||||
result.push({
|
||||
path: _.get(_.last(result), 'path') + `/${value}`,
|
||||
path: _.get(_.last(result), 'path', `/${this.locale}`) + `/${value}`,
|
||||
name: value
|
||||
})
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user