国际化配置
parent
102c45669b
commit
8e75d1addd
|
|
@ -37,7 +37,7 @@ export default {
|
||||||
const first = matched[0]
|
const first = matched[0]
|
||||||
|
|
||||||
if (!this.isDashboard(first)) {
|
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)
|
this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false)
|
||||||
|
|
|
||||||
|
|
@ -159,7 +159,11 @@ export default {
|
||||||
system2_tool: 'System Tools',
|
system2_tool: 'System Tools',
|
||||||
system2_mnt: 'IT Operation Management',
|
system2_mnt: 'IT Operation Management',
|
||||||
system2_monitor: 'system monitor',
|
system2_monitor: 'system monitor',
|
||||||
system2_report: 'Report Management'
|
system2_report: 'Report Management',
|
||||||
|
Planning_strategy: 'Planning strategy'
|
||||||
|
},
|
||||||
|
base: {
|
||||||
|
home: 'home'
|
||||||
},
|
},
|
||||||
crud: {
|
crud: {
|
||||||
add: 'Add',
|
add: 'Add',
|
||||||
|
|
|
||||||
|
|
@ -159,7 +159,11 @@ export default {
|
||||||
system2_tool: '系统工具',
|
system2_tool: '系统工具',
|
||||||
system2_mnt: '运维管理',
|
system2_mnt: '运维管理',
|
||||||
system2_monitor: '系统监控',
|
system2_monitor: '系统监控',
|
||||||
system2_report: '报表配置'
|
system2_report: '报表配置',
|
||||||
|
Planning_strategy: '规划策略'
|
||||||
|
},
|
||||||
|
base: {
|
||||||
|
home: '首页'
|
||||||
},
|
},
|
||||||
crud: {
|
crud: {
|
||||||
add: '新增',
|
add: '新增',
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ export const constantRouterMap = [
|
||||||
path: 'dashboard',
|
path: 'dashboard',
|
||||||
component: (resolve) => require(['@/views/home'], resolve),
|
component: (resolve) => require(['@/views/home'], resolve),
|
||||||
name: 'Dashboard',
|
name: 'Dashboard',
|
||||||
meta: { title: '首页', icon: 'index', affix: true, noCache: false ,keepAlive:true}
|
meta: { title: 'base.home', icon: 'index', affix: true, noCache: false ,keepAlive:true}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue