feat: 新增很多页面
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user