feat: 航线管理页面优化
This commit is contained in:
@@ -59,7 +59,8 @@ const BasicLayout: React.FC = (props: any) => {
|
||||
if (!cand) return undefined;
|
||||
const lower = cand.toLowerCase();
|
||||
if (lower.startsWith('http')) return cand; // 澶栭摼
|
||||
if (lower.endsWith('.html')) return cand.startsWith('/') ? cand : `/${cand}`; // 闈欐€佽矾鐢? if (lower === '/welcome' || lower === 'welcome') return '/welcome';
|
||||
if (lower.endsWith('.html')) return cand.startsWith('/') ? cand : `/${cand}`; // 闈欐€佽矾鐢?
|
||||
if (lower === '/welcome' || lower === 'welcome') return '/welcome';
|
||||
// 鍏煎鍚庣鑿滃崟鏈甫 .html 鐨勫彾瀛愯矾鐢憋紝渚嬪 /system/tenant => /system/tenant.html
|
||||
const ensureSlash = cand.startsWith('/') ? cand : `/${cand}`;
|
||||
const parts = ensureSlash.split('/').filter(Boolean);
|
||||
@@ -96,7 +97,7 @@ const BasicLayout: React.FC = (props: any) => {
|
||||
|
||||
const item: MenuDataItem = {
|
||||
key: keyStr,
|
||||
name: menu.name || `鑿滃崟${index + 1}`,
|
||||
name: menu.name || `保存中${index + 1}`,
|
||||
path,
|
||||
icon: getIcon(path),
|
||||
children: childrenList.map((child: MenuNode, i: number) => normalize(child, i, keyStr)),
|
||||
|
||||
Reference in New Issue
Block a user