diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index 5abad60..9bd4413 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -37,7 +37,7 @@ export default { const first = matched[0] if (!this.isDashboard(first)) { - matched = [{ path: '/dashboard', meta: { title: '首页' }}].concat(matched) + matched = [{ path: '/dashboard', meta: { title: 'base.home' }}].concat(matched) } this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false) diff --git a/src/i18n/en.js b/src/i18n/en.js index 41e8a52..89a0e57 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -159,7 +159,11 @@ export default { system2_tool: 'System Tools', system2_mnt: 'IT Operation Management', system2_monitor: 'system monitor', - system2_report: 'Report Management' + system2_report: 'Report Management', + Planning_strategy: 'Planning strategy' + }, + base: { + home: 'home' }, crud: { add: 'Add', diff --git a/src/i18n/zh-CN.js b/src/i18n/zh-CN.js index 755ad8c..9f75f2f 100644 --- a/src/i18n/zh-CN.js +++ b/src/i18n/zh-CN.js @@ -159,7 +159,11 @@ export default { system2_tool: '系统工具', system2_mnt: '运维管理', system2_monitor: '系统监控', - system2_report: '报表配置' + system2_report: '报表配置', + Planning_strategy: '规划策略' + }, + base: { + home: '首页' }, crud: { add: '新增', diff --git a/src/router/routers.js b/src/router/routers.js index 9f05650..9bda86c 100644 --- a/src/router/routers.js +++ b/src/router/routers.js @@ -53,7 +53,7 @@ export const constantRouterMap = [ path: 'dashboard', component: (resolve) => require(['@/views/home'], resolve), name: 'Dashboard', - meta: { title: '首页', icon: 'index', affix: true, noCache: false ,keepAlive:true} + meta: { title: 'base.home', icon: 'index', affix: true, noCache: false ,keepAlive:true} } ] },