feat: 航线管理页面优化

This commit is contained in:
2025-11-04 11:53:35 +08:00
parent e106e09fa5
commit e23eecdbfd
21 changed files with 515 additions and 1070 deletions
@@ -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)),