Commit 2f177f15 authored by Marcus's avatar Marcus

首页 翻译

parent e45a01d6
...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
const first = matched[0] const first = matched[0]
if (!this.isDashboard(first)) { if (!this.isDashboard(first)) {
matched = [{ path: '/index', meta: { title: '首页' }}].concat(matched) matched = [{ path: '/index', meta: { title: '首页', titleEn: 'Home' }}].concat(matched)
} }
this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false) this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false)
...@@ -49,7 +49,7 @@ export default { ...@@ -49,7 +49,7 @@ export default {
return name.trim() === '首页' // 修复 Index 重复的问题 return name.trim() === '首页' // 修复 Index 重复的问题
}, },
handleLink(item) { handleLink(item) {
return return
const { redirect, path } = item const { redirect, path } = item
if (redirect) { if (redirect) {
this.$router.push(redirect) this.$router.push(redirect)
......
...@@ -65,7 +65,8 @@ export const constantRoutes = [ ...@@ -65,7 +65,8 @@ export const constantRoutes = [
path: 'index', path: 'index',
component: (resolve) => require(['@/views/index'], resolve), component: (resolve) => require(['@/views/index'], resolve),
name: '首页', name: '首页',
meta: {title: '首页', icon: 'dashboard', affix: true} nameEn: 'Home',
meta: {title: '首页', titleEn: 'Home', icon: 'dashboard', affix: true}
} }
] ]
}, { }, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment