Commit 2f177f15 authored by Marcus's avatar Marcus

首页 翻译

parent e45a01d6
......@@ -35,7 +35,7 @@ export default {
const first = matched[0]
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)
......@@ -49,7 +49,7 @@ export default {
return name.trim() === '首页' // 修复 Index 重复的问题
},
handleLink(item) {
return
return
const { redirect, path } = item
if (redirect) {
this.$router.push(redirect)
......
......@@ -65,7 +65,8 @@ export const constantRoutes = [
path: 'index',
component: (resolve) => require(['@/views/index'], resolve),
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