mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-11-26 04:23:40 +08:00
perf: 同步完整版代码
This commit is contained in:
@@ -90,11 +90,8 @@ router.beforeEach((to: toRouteType, _from, next) => {
|
||||
if (!item.meta.title) return "";
|
||||
const Title = getConfig().Title;
|
||||
if (Title)
|
||||
document.title = `${transformI18n(
|
||||
item.meta.title,
|
||||
item.meta?.i18n
|
||||
)} | ${Title}`;
|
||||
else document.title = transformI18n(item.meta.title, item.meta?.i18n);
|
||||
document.title = `${transformI18n(item.meta.title)} | ${Title}`;
|
||||
else document.title = transformI18n(item.meta.title);
|
||||
});
|
||||
if (name) {
|
||||
if (_from?.name) {
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -9,7 +9,6 @@ const homeRouter = {
|
||||
meta: {
|
||||
icon: "home-filled",
|
||||
title: $t("menus.hshome"),
|
||||
i18n: true,
|
||||
rank: 0
|
||||
},
|
||||
children: [
|
||||
@@ -18,8 +17,7 @@ const homeRouter = {
|
||||
name: "welcome",
|
||||
component: () => import("/@/views/welcome.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hshome"),
|
||||
i18n: true
|
||||
title: $t("menus.hshome")
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -9,7 +9,6 @@ const remainingRouter = [
|
||||
meta: {
|
||||
title: $t("menus.hslogin"),
|
||||
showLink: false,
|
||||
i18n: true,
|
||||
rank: 101
|
||||
}
|
||||
},
|
||||
@@ -19,7 +18,6 @@ const remainingRouter = [
|
||||
meta: {
|
||||
icon: "home-filled",
|
||||
title: $t("menus.hshome"),
|
||||
i18n: true,
|
||||
showLink: false,
|
||||
rank: 104
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user