feat(cli): improve nav route

This commit is contained in:
陈嘉涵
2019-12-12 20:47:07 +08:00
parent 1aaa8b3945
commit d511508e3b
5 changed files with 30 additions and 12 deletions

View File

@@ -32,11 +32,8 @@ export default {
},
props: {
navConfig: Array,
base: {
type: String,
default: ''
}
lang: String,
navConfig: Array
},
data() {
@@ -52,6 +49,10 @@ export default {
top: this.top + 'px',
bottom: this.bottom + 'px'
};
},
base() {
return this.lang ? `/${this.lang}` : '';
}
},