From 8e75d1addd9faa355bfce929034d95edf45bed1c Mon Sep 17 00:00:00 2001 From: "768863620@qq.com" <768863620@qq.com> Date: Mon, 23 Sep 2024 16:37:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Breadcrumb/index.vue | 2 +- src/i18n/en.js | 6 +++++- src/i18n/zh-CN.js | 6 +++++- src/router/routers.js | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) 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} } ] },