国际化配置

main
768863620@qq.com 2024-09-23 16:37:09 +08:00
parent 102c45669b
commit 8e75d1addd
4 changed files with 12 additions and 4 deletions

View File

@ -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)

View File

@ -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',

View File

@ -159,7 +159,11 @@ export default {
system2_tool: '系统工具',
system2_mnt: '运维管理',
system2_monitor: '系统监控',
system2_report: '报表配置'
system2_report: '报表配置',
Planning_strategy: '规划策略'
},
base: {
home: '首页'
},
crud: {
add: '新增',

View File

@ -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}
}
]
},