fix(web): update admin base href to /admin/dashboard

This commit is contained in:
ShiYu
2025-06-07 09:38:04 +08:00
parent 288e10a2d0
commit 38efca8bc0
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ const Header: React.FC<HeaderProps> = ({
const currentPath = location.pathname;
const isAdminArea = routeInfo?.area === 'admin';
const baseHref = isAdminArea ? '/admin' : '/';
const baseHref = isAdminArea ? '/admin/dashboard' : '/';
const baseTitle = isAdminArea ? '管理后台' : '首页';
if (currentPath === baseHref && !explicitTitle && (!routeInfo || routeInfo.path === '')) {

View File

@@ -127,7 +127,7 @@ const routes: RouteConfig[] = [
// 管理后台路由
{
path: '',
path: 'dashboard',
key: 'admin-dashboard',
icon: <DashboardOutlined />,
label: '控制面板',