mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-03 13:44:47 +08:00
perf: 优化国际化,路由不再传i18n字段,平台自动读取根目录locales文件夹下文件进行国际化匹配
This commit is contained in:
@@ -8,7 +8,6 @@ const errorRouter = {
|
||||
meta: {
|
||||
icon: "information-line",
|
||||
title: $t("menus.hserror"),
|
||||
i18n: true,
|
||||
rank: 9
|
||||
},
|
||||
children: [
|
||||
@@ -17,8 +16,7 @@ const errorRouter = {
|
||||
name: "403",
|
||||
component: () => import("/@/views/error/403.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsfourZeroOne"),
|
||||
i18n: true
|
||||
title: $t("menus.hsfourZeroOne")
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -26,8 +24,7 @@ const errorRouter = {
|
||||
name: "404",
|
||||
component: () => import("/@/views/error/404.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsfourZeroFour"),
|
||||
i18n: true
|
||||
title: $t("menus.hsfourZeroFour")
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -35,8 +32,7 @@ const errorRouter = {
|
||||
name: "500",
|
||||
component: () => import("/@/views/error/500.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsFive"),
|
||||
i18n: true
|
||||
title: $t("menus.hsFive")
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user