fix(cli): nav route matching
This commit is contained in:
@@ -52,7 +52,7 @@ export default {
|
||||
},
|
||||
|
||||
base() {
|
||||
return this.lang ? `/${this.lang}` : '';
|
||||
return this.lang ? `/${this.lang}/` : '/';
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -20,8 +20,7 @@ export default {
|
||||
},
|
||||
|
||||
path() {
|
||||
const { path } = this.item;
|
||||
return this.base ? `${this.base}/${path}` : path;
|
||||
return `${this.base}${this.item.path}`;
|
||||
},
|
||||
|
||||
active() {
|
||||
|
||||
Reference in New Issue
Block a user