feat: Element Plus 最新版本国际化和集成i18n插件实现自定义国际化(包括动态路由)

This commit is contained in:
郝先瑞
2022-02-24 00:22:11 +08:00
parent 71cec7be32
commit 966bdf1b6e
10 changed files with 142 additions and 87 deletions

View File

@@ -2,7 +2,6 @@ import {createRouter, createWebHashHistory, RouteRecordRaw} from 'vue-router'
export const Layout = () => import( '@/layout/index.vue')
// 参数说明: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
export const constantRoutes: Array<RouteRecordRaw> = [
{
@@ -40,10 +39,11 @@ export const constantRoutes: Array<RouteRecordRaw> = [
path: 'dashboard',
component: () => import('@/views/dashboard/index.vue'),
name: 'Dashboard',
meta: {title: '首页', icon: 'dashboard', affix: true}
meta: {title: 'dashboard', icon: 'dashboard', affix: true}
}
]
},
// 外部链接
/*{
path: '/external-link',