feat: Element Plus 最新版本国际化和集成i18n插件实现自定义国际化(包括动态路由)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user