refine: convert chinese to english

This commit is contained in:
Pan
2017-09-15 13:45:09 +08:00
parent 3a3cfcc69a
commit 3f4e9cc50f
3 changed files with 26 additions and 25 deletions

View File

@@ -21,8 +21,8 @@ export default {
getBreadcrumb() {
let matched = this.$route.matched.filter(item => item.name)
const first = matched[0]
if (first && (first.name !== '首页' || first.path !== '')) {
matched = [{ name: '首页', path: '/' }].concat(matched)
if (first && (first.name !== 'Home' || first.path !== '')) {
matched = [{ name: 'Home', path: '/' }].concat(matched)
}
this.levelList = matched
}