feat: upgrade sidebar, remove header, upgrade search

This commit is contained in:
Justineo
2021-07-19 16:27:38 +08:00
parent a9d349aed1
commit fe6f5376a9
14 changed files with 726 additions and 632 deletions

View File

@@ -74,14 +74,13 @@ export default {
}
},
methods: {
getLocalePath (path, locale) {
let loc = locale || this.locale
if (loc === DEFAULT_LOCALE) {
getLocalePath (path, locale = this.locale) {
if (locale === DEFAULT_LOCALE) {
return path
}
return `/${loc}${path}`.replace(/\/$/, '')
return `/${locale}${path}`.replace(/\/$/, '')
},
isPathDisabled (path, locale) {
isPathDisabled (path, locale = this.locale) {
let segments = compact(path.split('/'))
let navItem = segments.reduce((node, seg) => {
if (!node) {