修改标题和做菜单

This commit is contained in:
spllzh
2025-08-09 20:57:16 +08:00
parent 4c18a3f47b
commit b62c9209e0
4 changed files with 10 additions and 10 deletions

View File

@@ -26,9 +26,9 @@ import Layout from '@/layout'
*/
/**
* constantRoutes
* a base page that does not have permission requirements
* all roles can be accessed
*
静态路由constantRoutes 菜单内容是前端写死
动态路由: 菜单内容是动态获取
*/
export const constantRoutes = [
{
@@ -51,7 +51,7 @@ export const constantRoutes = [
path: 'dashboard',
name: 'Dashboard',
component: () => import('@/views/dashboard/index'),
meta: { title: 'Dashboard', icon: 'dashboard' }
meta: { title: '首页', icon: 'dashboard' }
}]
},
@@ -60,19 +60,19 @@ export const constantRoutes = [
component: Layout,
redirect: '/example/table',
name: 'Example',
meta: { title: 'Example', icon: 'el-icon-s-help' },
meta: { title: '案例', icon: 'el-icon-s-help' },
children: [
{
path: 'table',
name: 'Table',
component: () => import('@/views/table/index'),
meta: { title: 'Table', icon: 'table' }
meta: { title: '表格', icon: 'table' }
},
{
path: 'tree',
name: 'Tree',
component: () => import('@/views/tree/index'),
meta: { title: 'Tree', icon: 'tree' }
meta: { title: '树状表格', icon: 'el-icon-share' }
}
]
},