mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-05-20 16:19:17 +08:00
feat: 将菜单标题改为中文
This commit is contained in:
parent
6858a9ad67
commit
8b83ff1122
@ -6,7 +6,6 @@ import 'normalize.css/normalize.css' // a modern alternative to CSS resets
|
|||||||
|
|
||||||
import Element from 'element-ui'
|
import Element from 'element-ui'
|
||||||
import './styles/element-variables.scss'
|
import './styles/element-variables.scss'
|
||||||
import enLang from 'element-ui/lib/locale/lang/en'// 如果使用中文语言包请默认支持,无需额外引入,请删除该依赖
|
|
||||||
|
|
||||||
import '@/styles/index.scss' // global css
|
import '@/styles/index.scss' // global css
|
||||||
|
|
||||||
@ -34,8 +33,7 @@ if (process.env.NODE_ENV === 'production') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Vue.use(Element, {
|
Vue.use(Element, {
|
||||||
size: Cookies.get('size') || 'medium', // set element-ui default size
|
size: Cookies.get('size') || 'medium' // set element-ui default size
|
||||||
locale: enLang // 如果使用中文,无需设置,请删除
|
|
||||||
})
|
})
|
||||||
|
|
||||||
// register global utility filters
|
// register global utility filters
|
||||||
|
@ -79,7 +79,7 @@ export const constantRoutes = [
|
|||||||
path: 'dashboard',
|
path: 'dashboard',
|
||||||
component: () => import('@/views/dashboard/index'),
|
component: () => import('@/views/dashboard/index'),
|
||||||
name: 'Dashboard',
|
name: 'Dashboard',
|
||||||
meta: { title: 'Dashboard', icon: 'dashboard', affix: true }
|
meta: { title: '仪表盘', icon: 'dashboard', affix: true }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -91,7 +91,7 @@ export const constantRoutes = [
|
|||||||
path: 'index',
|
path: 'index',
|
||||||
component: () => import('@/views/documentation/index'),
|
component: () => import('@/views/documentation/index'),
|
||||||
name: 'Documentation',
|
name: 'Documentation',
|
||||||
meta: { title: 'Documentation', icon: 'documentation', affix: true }
|
meta: { title: '文档', icon: 'documentation', affix: true }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -104,7 +104,7 @@ export const constantRoutes = [
|
|||||||
path: 'index',
|
path: 'index',
|
||||||
component: () => import('@/views/guide/index'),
|
component: () => import('@/views/guide/index'),
|
||||||
name: 'Guide',
|
name: 'Guide',
|
||||||
meta: { title: 'Guide', icon: 'guide', noCache: true }
|
meta: { title: '引导页', icon: 'guide', noCache: true }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -118,7 +118,7 @@ export const constantRoutes = [
|
|||||||
path: 'index',
|
path: 'index',
|
||||||
component: () => import('@/views/profile/index'),
|
component: () => import('@/views/profile/index'),
|
||||||
name: 'Profile',
|
name: 'Profile',
|
||||||
meta: { title: 'Profile', icon: 'user', noCache: true }
|
meta: { title: '个人中心', icon: 'user', noCache: true }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -136,7 +136,7 @@ export const asyncRoutes = [
|
|||||||
alwaysShow: true, // will always show the root menu
|
alwaysShow: true, // will always show the root menu
|
||||||
name: 'Permission',
|
name: 'Permission',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'Permission',
|
title: '权限',
|
||||||
icon: 'lock',
|
icon: 'lock',
|
||||||
roles: ['admin', 'editor'] // you can set roles in root nav
|
roles: ['admin', 'editor'] // you can set roles in root nav
|
||||||
},
|
},
|
||||||
@ -146,7 +146,7 @@ export const asyncRoutes = [
|
|||||||
component: () => import('@/views/permission/page'),
|
component: () => import('@/views/permission/page'),
|
||||||
name: 'PagePermission',
|
name: 'PagePermission',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'Page Permission',
|
title: '页面权限',
|
||||||
roles: ['admin'] // or you can only set roles in sub nav
|
roles: ['admin'] // or you can only set roles in sub nav
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -155,7 +155,7 @@ export const asyncRoutes = [
|
|||||||
component: () => import('@/views/permission/directive'),
|
component: () => import('@/views/permission/directive'),
|
||||||
name: 'DirectivePermission',
|
name: 'DirectivePermission',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'Directive Permission'
|
title: '指令权限'
|
||||||
// if do not set roles, means: this page does not require permission
|
// if do not set roles, means: this page does not require permission
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -164,7 +164,7 @@ export const asyncRoutes = [
|
|||||||
component: () => import('@/views/permission/role'),
|
component: () => import('@/views/permission/role'),
|
||||||
name: 'RolePermission',
|
name: 'RolePermission',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'Role Permission',
|
title: '角色权限',
|
||||||
roles: ['admin']
|
roles: ['admin']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -179,7 +179,7 @@ export const asyncRoutes = [
|
|||||||
path: 'index',
|
path: 'index',
|
||||||
component: () => import('@/views/icons/index'),
|
component: () => import('@/views/icons/index'),
|
||||||
name: 'Icons',
|
name: 'Icons',
|
||||||
meta: { title: 'Icons', icon: 'icon', noCache: true }
|
meta: { title: '图标', icon: 'icon', noCache: true }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -196,7 +196,7 @@ export const asyncRoutes = [
|
|||||||
redirect: '/example/list',
|
redirect: '/example/list',
|
||||||
name: 'Example',
|
name: 'Example',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'Example',
|
title: '示例',
|
||||||
icon: 'el-icon-s-help'
|
icon: 'el-icon-s-help'
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
@ -204,20 +204,20 @@ export const asyncRoutes = [
|
|||||||
path: 'create',
|
path: 'create',
|
||||||
component: () => import('@/views/example/create'),
|
component: () => import('@/views/example/create'),
|
||||||
name: 'CreateArticle',
|
name: 'CreateArticle',
|
||||||
meta: { title: 'Create Article', icon: 'edit' }
|
meta: { title: '创建文章', icon: 'edit' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'edit/:id(\\d+)',
|
path: 'edit/:id(\\d+)',
|
||||||
component: () => import('@/views/example/edit'),
|
component: () => import('@/views/example/edit'),
|
||||||
name: 'EditArticle',
|
name: 'EditArticle',
|
||||||
meta: { title: 'Edit Article', noCache: true, activeMenu: '/example/list' },
|
meta: { title: '编辑文章', noCache: true, activeMenu: '/example/list' },
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'list',
|
path: 'list',
|
||||||
component: () => import('@/views/example/list'),
|
component: () => import('@/views/example/list'),
|
||||||
name: 'ArticleList',
|
name: 'ArticleList',
|
||||||
meta: { title: 'Article List', icon: 'list' }
|
meta: { title: '文章列表', icon: 'list' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -230,7 +230,7 @@ export const asyncRoutes = [
|
|||||||
path: 'index',
|
path: 'index',
|
||||||
component: () => import('@/views/tab/index'),
|
component: () => import('@/views/tab/index'),
|
||||||
name: 'Tab',
|
name: 'Tab',
|
||||||
meta: { title: 'Tab', icon: 'tab' }
|
meta: { title: '标签页', icon: 'tab' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -241,7 +241,7 @@ export const asyncRoutes = [
|
|||||||
redirect: 'noRedirect',
|
redirect: 'noRedirect',
|
||||||
name: 'ErrorPages',
|
name: 'ErrorPages',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'Error Pages',
|
title: '错误页面',
|
||||||
icon: '404'
|
icon: '404'
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
@ -268,7 +268,7 @@ export const asyncRoutes = [
|
|||||||
path: 'log',
|
path: 'log',
|
||||||
component: () => import('@/views/error-log/index'),
|
component: () => import('@/views/error-log/index'),
|
||||||
name: 'ErrorLog',
|
name: 'ErrorLog',
|
||||||
meta: { title: 'Error Log', icon: 'bug' }
|
meta: { title: '错误日志', icon: 'bug' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -287,25 +287,25 @@ export const asyncRoutes = [
|
|||||||
path: 'export-excel',
|
path: 'export-excel',
|
||||||
component: () => import('@/views/excel/export-excel'),
|
component: () => import('@/views/excel/export-excel'),
|
||||||
name: 'ExportExcel',
|
name: 'ExportExcel',
|
||||||
meta: { title: 'Export Excel' }
|
meta: { title: '导出 Excel' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'export-selected-excel',
|
path: 'export-selected-excel',
|
||||||
component: () => import('@/views/excel/select-excel'),
|
component: () => import('@/views/excel/select-excel'),
|
||||||
name: 'SelectExcel',
|
name: 'SelectExcel',
|
||||||
meta: { title: 'Export Selected' }
|
meta: { title: '导出已选项' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'export-merge-header',
|
path: 'export-merge-header',
|
||||||
component: () => import('@/views/excel/merge-header'),
|
component: () => import('@/views/excel/merge-header'),
|
||||||
name: 'MergeHeader',
|
name: 'MergeHeader',
|
||||||
meta: { title: 'Merge Header' }
|
meta: { title: '导出多级表头' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'upload-excel',
|
path: 'upload-excel',
|
||||||
component: () => import('@/views/excel/upload-excel'),
|
component: () => import('@/views/excel/upload-excel'),
|
||||||
name: 'UploadExcel',
|
name: 'UploadExcel',
|
||||||
meta: { title: 'Upload Excel' }
|
meta: { title: '上传 Excel' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -322,7 +322,7 @@ export const asyncRoutes = [
|
|||||||
path: 'download',
|
path: 'download',
|
||||||
component: () => import('@/views/zip/index'),
|
component: () => import('@/views/zip/index'),
|
||||||
name: 'ExportZip',
|
name: 'ExportZip',
|
||||||
meta: { title: 'Export Zip' }
|
meta: { title: '导出 Zip' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -354,7 +354,7 @@ export const asyncRoutes = [
|
|||||||
path: 'index',
|
path: 'index',
|
||||||
component: () => import('@/views/theme/index'),
|
component: () => import('@/views/theme/index'),
|
||||||
name: 'Theme',
|
name: 'Theme',
|
||||||
meta: { title: 'Theme', icon: 'theme' }
|
meta: { title: '主题', icon: 'theme' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -367,7 +367,7 @@ export const asyncRoutes = [
|
|||||||
path: 'index',
|
path: 'index',
|
||||||
component: () => import('@/views/clipboard/index'),
|
component: () => import('@/views/clipboard/index'),
|
||||||
name: 'ClipboardDemo',
|
name: 'ClipboardDemo',
|
||||||
meta: { title: 'Clipboard', icon: 'clipboard' }
|
meta: { title: '剪贴板', icon: 'clipboard' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -378,7 +378,7 @@ export const asyncRoutes = [
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'https://github.com/PanJiaChen/vue-element-admin',
|
path: 'https://github.com/PanJiaChen/vue-element-admin',
|
||||||
meta: { title: 'External Link', icon: 'link' }
|
meta: { title: '外链', icon: 'link' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -8,7 +8,7 @@ const chartsRouter = {
|
|||||||
redirect: 'noRedirect',
|
redirect: 'noRedirect',
|
||||||
name: 'Charts',
|
name: 'Charts',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'Charts',
|
title: '图表',
|
||||||
icon: 'chart'
|
icon: 'chart'
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
@ -16,19 +16,19 @@ const chartsRouter = {
|
|||||||
path: 'keyboard',
|
path: 'keyboard',
|
||||||
component: () => import('@/views/charts/keyboard'),
|
component: () => import('@/views/charts/keyboard'),
|
||||||
name: 'KeyboardChart',
|
name: 'KeyboardChart',
|
||||||
meta: { title: 'Keyboard Chart', noCache: true }
|
meta: { title: '键盘图表', noCache: true }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'line',
|
path: 'line',
|
||||||
component: () => import('@/views/charts/line'),
|
component: () => import('@/views/charts/line'),
|
||||||
name: 'LineChart',
|
name: 'LineChart',
|
||||||
meta: { title: 'Line Chart', noCache: true }
|
meta: { title: '折线图表', noCache: true }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'mix-chart',
|
path: 'mix-chart',
|
||||||
component: () => import('@/views/charts/mix-chart'),
|
component: () => import('@/views/charts/mix-chart'),
|
||||||
name: 'MixChart',
|
name: 'MixChart',
|
||||||
meta: { title: 'Mix Chart', noCache: true }
|
meta: { title: '混合图表', noCache: true }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ const componentsRouter = {
|
|||||||
redirect: 'noRedirect',
|
redirect: 'noRedirect',
|
||||||
name: 'ComponentDemo',
|
name: 'ComponentDemo',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'Components',
|
title: '组件',
|
||||||
icon: 'component'
|
icon: 'component'
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
@ -16,85 +16,85 @@ const componentsRouter = {
|
|||||||
path: 'tinymce',
|
path: 'tinymce',
|
||||||
component: () => import('@/views/components-demo/tinymce'),
|
component: () => import('@/views/components-demo/tinymce'),
|
||||||
name: 'TinymceDemo',
|
name: 'TinymceDemo',
|
||||||
meta: { title: 'Tinymce' }
|
meta: { title: '富文本编辑器' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'markdown',
|
path: 'markdown',
|
||||||
component: () => import('@/views/components-demo/markdown'),
|
component: () => import('@/views/components-demo/markdown'),
|
||||||
name: 'MarkdownDemo',
|
name: 'MarkdownDemo',
|
||||||
meta: { title: 'Markdown' }
|
meta: { title: 'Markdown编辑器' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'json-editor',
|
path: 'json-editor',
|
||||||
component: () => import('@/views/components-demo/json-editor'),
|
component: () => import('@/views/components-demo/json-editor'),
|
||||||
name: 'JsonEditorDemo',
|
name: 'JsonEditorDemo',
|
||||||
meta: { title: 'JSON Editor' }
|
meta: { title: 'JSON编辑器' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'split-pane',
|
path: 'split-pane',
|
||||||
component: () => import('@/views/components-demo/split-pane'),
|
component: () => import('@/views/components-demo/split-pane'),
|
||||||
name: 'SplitpaneDemo',
|
name: 'SplitpaneDemo',
|
||||||
meta: { title: 'SplitPane' }
|
meta: { title: '分割面板' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'avatar-upload',
|
path: 'avatar-upload',
|
||||||
component: () => import('@/views/components-demo/avatar-upload'),
|
component: () => import('@/views/components-demo/avatar-upload'),
|
||||||
name: 'AvatarUploadDemo',
|
name: 'AvatarUploadDemo',
|
||||||
meta: { title: 'Upload' }
|
meta: { title: '头像上传' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'dropzone',
|
path: 'dropzone',
|
||||||
component: () => import('@/views/components-demo/dropzone'),
|
component: () => import('@/views/components-demo/dropzone'),
|
||||||
name: 'DropzoneDemo',
|
name: 'DropzoneDemo',
|
||||||
meta: { title: 'Dropzone' }
|
meta: { title: '拖拽上传' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'sticky',
|
path: 'sticky',
|
||||||
component: () => import('@/views/components-demo/sticky'),
|
component: () => import('@/views/components-demo/sticky'),
|
||||||
name: 'StickyDemo',
|
name: 'StickyDemo',
|
||||||
meta: { title: 'Sticky' }
|
meta: { title: '粘性布局' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'count-to',
|
path: 'count-to',
|
||||||
component: () => import('@/views/components-demo/count-to'),
|
component: () => import('@/views/components-demo/count-to'),
|
||||||
name: 'CountToDemo',
|
name: 'CountToDemo',
|
||||||
meta: { title: 'Count To' }
|
meta: { title: '数字动画' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'mixin',
|
path: 'mixin',
|
||||||
component: () => import('@/views/components-demo/mixin'),
|
component: () => import('@/views/components-demo/mixin'),
|
||||||
name: 'ComponentMixinDemo',
|
name: 'ComponentMixinDemo',
|
||||||
meta: { title: 'Component Mixin' }
|
meta: { title: '组件混入' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'back-to-top',
|
path: 'back-to-top',
|
||||||
component: () => import('@/views/components-demo/back-to-top'),
|
component: () => import('@/views/components-demo/back-to-top'),
|
||||||
name: 'BackToTopDemo',
|
name: 'BackToTopDemo',
|
||||||
meta: { title: 'Back To Top' }
|
meta: { title: '返回顶部' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'drag-dialog',
|
path: 'drag-dialog',
|
||||||
component: () => import('@/views/components-demo/drag-dialog'),
|
component: () => import('@/views/components-demo/drag-dialog'),
|
||||||
name: 'DragDialogDemo',
|
name: 'DragDialogDemo',
|
||||||
meta: { title: 'Drag Dialog' }
|
meta: { title: '拖拽对话框' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'drag-select',
|
path: 'drag-select',
|
||||||
component: () => import('@/views/components-demo/drag-select'),
|
component: () => import('@/views/components-demo/drag-select'),
|
||||||
name: 'DragSelectDemo',
|
name: 'DragSelectDemo',
|
||||||
meta: { title: 'Drag Select' }
|
meta: { title: '拖拽选择' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'dnd-list',
|
path: 'dnd-list',
|
||||||
component: () => import('@/views/components-demo/dnd-list'),
|
component: () => import('@/views/components-demo/dnd-list'),
|
||||||
name: 'DndListDemo',
|
name: 'DndListDemo',
|
||||||
meta: { title: 'Dnd List' }
|
meta: { title: '拖拽列表' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'drag-kanban',
|
path: 'drag-kanban',
|
||||||
component: () => import('@/views/components-demo/drag-kanban'),
|
component: () => import('@/views/components-demo/drag-kanban'),
|
||||||
name: 'DragKanbanDemo',
|
name: 'DragKanbanDemo',
|
||||||
meta: { title: 'Drag Kanban' }
|
meta: { title: '拖拽看板' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ const nestedRouter = {
|
|||||||
redirect: '/nested/menu1/menu1-1',
|
redirect: '/nested/menu1/menu1-1',
|
||||||
name: 'Nested',
|
name: 'Nested',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'Nested Routes',
|
title: '嵌套路由',
|
||||||
icon: 'nested'
|
icon: 'nested'
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
@ -16,33 +16,33 @@ const nestedRouter = {
|
|||||||
path: 'menu1',
|
path: 'menu1',
|
||||||
component: () => import('@/views/nested/menu1/index'), // Parent router-view
|
component: () => import('@/views/nested/menu1/index'), // Parent router-view
|
||||||
name: 'Menu1',
|
name: 'Menu1',
|
||||||
meta: { title: 'Menu 1' },
|
meta: { title: '菜单1' },
|
||||||
redirect: '/nested/menu1/menu1-1',
|
redirect: '/nested/menu1/menu1-1',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'menu1-1',
|
path: 'menu1-1',
|
||||||
component: () => import('@/views/nested/menu1/menu1-1'),
|
component: () => import('@/views/nested/menu1/menu1-1'),
|
||||||
name: 'Menu1-1',
|
name: 'Menu1-1',
|
||||||
meta: { title: 'Menu 1-1' }
|
meta: { title: '菜单1-1' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'menu1-2',
|
path: 'menu1-2',
|
||||||
component: () => import('@/views/nested/menu1/menu1-2'),
|
component: () => import('@/views/nested/menu1/menu1-2'),
|
||||||
name: 'Menu1-2',
|
name: 'Menu1-2',
|
||||||
redirect: '/nested/menu1/menu1-2/menu1-2-1',
|
redirect: '/nested/menu1/menu1-2/menu1-2-1',
|
||||||
meta: { title: 'Menu 1-2' },
|
meta: { title: '菜单1-2' },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'menu1-2-1',
|
path: 'menu1-2-1',
|
||||||
component: () => import('@/views/nested/menu1/menu1-2/menu1-2-1'),
|
component: () => import('@/views/nested/menu1/menu1-2/menu1-2-1'),
|
||||||
name: 'Menu1-2-1',
|
name: 'Menu1-2-1',
|
||||||
meta: { title: 'Menu 1-2-1' }
|
meta: { title: '菜单1-2-1' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'menu1-2-2',
|
path: 'menu1-2-2',
|
||||||
component: () => import('@/views/nested/menu1/menu1-2/menu1-2-2'),
|
component: () => import('@/views/nested/menu1/menu1-2/menu1-2-2'),
|
||||||
name: 'Menu1-2-2',
|
name: 'Menu1-2-2',
|
||||||
meta: { title: 'Menu 1-2-2' }
|
meta: { title: '菜单1-2-2' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -50,7 +50,7 @@ const nestedRouter = {
|
|||||||
path: 'menu1-3',
|
path: 'menu1-3',
|
||||||
component: () => import('@/views/nested/menu1/menu1-3'),
|
component: () => import('@/views/nested/menu1/menu1-3'),
|
||||||
name: 'Menu1-3',
|
name: 'Menu1-3',
|
||||||
meta: { title: 'Menu 1-3' }
|
meta: { title: '菜单1-3' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -58,7 +58,7 @@ const nestedRouter = {
|
|||||||
path: 'menu2',
|
path: 'menu2',
|
||||||
name: 'Menu2',
|
name: 'Menu2',
|
||||||
component: () => import('@/views/nested/menu2/index'),
|
component: () => import('@/views/nested/menu2/index'),
|
||||||
meta: { title: 'Menu 2' }
|
meta: { title: '菜单2' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ const tableRouter = {
|
|||||||
redirect: '/table/complex-table',
|
redirect: '/table/complex-table',
|
||||||
name: 'Table',
|
name: 'Table',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'Table',
|
title: '表格',
|
||||||
icon: 'table'
|
icon: 'table'
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
@ -16,25 +16,25 @@ const tableRouter = {
|
|||||||
path: 'dynamic-table',
|
path: 'dynamic-table',
|
||||||
component: () => import('@/views/table/dynamic-table/index'),
|
component: () => import('@/views/table/dynamic-table/index'),
|
||||||
name: 'DynamicTable',
|
name: 'DynamicTable',
|
||||||
meta: { title: 'Dynamic Table' }
|
meta: { title: '动态表格' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'drag-table',
|
path: 'drag-table',
|
||||||
component: () => import('@/views/table/drag-table'),
|
component: () => import('@/views/table/drag-table'),
|
||||||
name: 'DragTable',
|
name: 'DragTable',
|
||||||
meta: { title: 'Drag Table' }
|
meta: { title: '拖拽表格' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'inline-edit-table',
|
path: 'inline-edit-table',
|
||||||
component: () => import('@/views/table/inline-edit-table'),
|
component: () => import('@/views/table/inline-edit-table'),
|
||||||
name: 'InlineEditTable',
|
name: 'InlineEditTable',
|
||||||
meta: { title: 'Inline Edit' }
|
meta: { title: '行内编辑' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'complex-table',
|
path: 'complex-table',
|
||||||
component: () => import('@/views/table/complex-table'),
|
component: () => import('@/views/table/complex-table'),
|
||||||
name: 'ComplexTable',
|
name: 'ComplexTable',
|
||||||
meta: { title: 'Complex Table' }
|
meta: { title: '综合表格' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user