feat: 新增很多页面

This commit is contained in:
2026-01-14 01:06:25 +08:00
parent d437b4eded
commit 18f0fbce15
46 changed files with 7926 additions and 10 deletions

View File

@@ -48,10 +48,10 @@ export function setTagsViewNameI18n(item: any) {
}
} else {
let name=''
if (item.name.indexOf("_") >= 0) {
if (item.name && typeof item.name === 'string' && item.name.indexOf("_") >= 0) {
name=item.name.split("_")[0]
}else{
name=item.name
name=item.name || ''
}
// 非自定义 tagsView 名称
tagsViewName = i18n.global.t(name);
@@ -500,7 +500,7 @@ export function toUnderline(str: string) {
*
* @param originUrl 原始路径
*/
const adaptationUrl = (originUrl?: string) => {
export function adaptationUrl(originUrl?: string) {
// 微服务架构 不做路径转换,为空不做路径转换
const isMicro = import.meta.env.VITE_IS_MICRO;
if (validateNull(isMicro) || isMicro === 'true') {
@@ -509,7 +509,7 @@ const adaptationUrl = (originUrl?: string) => {
// 转为 /admin 路由前缀的请求
return `/admin/${originUrl?.split('/').splice(2).join('/')}`;
};
}
/**
* @description 获取不重复的id