mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-12-18 00:00:37 +08:00
feat: 提交非国际化版本代码
This commit is contained in:
@@ -2,7 +2,6 @@ import { getConfig } from "@/config";
|
||||
import { toRouteType } from "./types";
|
||||
import NProgress from "@/utils/progress";
|
||||
import { findIndex } from "lodash-unified";
|
||||
import { transformI18n } from "@/plugins/i18n";
|
||||
import { sessionKey, type DataInfo } from "@/utils/auth";
|
||||
import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
|
||||
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||
@@ -104,9 +103,8 @@ router.beforeEach((to: toRouteType, _from, next) => {
|
||||
to.matched.some(item => {
|
||||
if (!item.meta.title) return "";
|
||||
const Title = getConfig().Title;
|
||||
if (Title)
|
||||
document.title = `${transformI18n(item.meta.title)} | ${Title}`;
|
||||
else document.title = transformI18n(item.meta.title);
|
||||
if (Title) document.title = `${item.meta.title} | ${Title}`;
|
||||
else document.title = item.meta.title as string;
|
||||
});
|
||||
}
|
||||
if (userInfo) {
|
||||
|
||||
Reference in New Issue
Block a user