新增加多语言

This commit is contained in:
不做码农
2022-05-07 13:36:33 +08:00
parent 24385f2b03
commit 9e57f0f18b
6 changed files with 132 additions and 25 deletions
+3 -3
View File
@@ -62,7 +62,7 @@ export const constantRoutes = [
path: '/index',
component: () => import('@/views/index'),
name: 'Index',
meta: { title: '首页', icon: 'dashboard', affix: true }
meta: { title: '首页', icon: 'dashboard', affix: true, titleKey: 'menu.home' }
}]
},
{
@@ -75,7 +75,7 @@ export const constantRoutes = [
path: 'profile',
component: () => import('@/views/system/user/profile/index'),
name: 'Profile',
meta: { title: '个人中心', icon: 'user' }
meta: { title: '个人中心', icon: 'user', titleKey: 'menu.personalCenter' }
}]
},
// 不用可删掉
@@ -89,7 +89,7 @@ export const constantRoutes = [
path: 'icon',
component: () => import('@/views/components/icons/index'),
name: 'icon',
meta: { title: '图标icon', icon: 'icon1', noCache: 'fasle' }
meta: { title: '图标icon', icon: 'icon1', noCache: 'fasle', titleKey: 'menu.icon' }
}]
},
];