mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-12 02:20:28 +08:00
fix(web): update admin base href to /admin/dashboard
This commit is contained in:
@@ -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 === '')) {
|
||||
|
||||
@@ -127,7 +127,7 @@ const routes: RouteConfig[] = [
|
||||
|
||||
// 管理后台路由
|
||||
{
|
||||
path: '',
|
||||
path: 'dashboard',
|
||||
key: 'admin-dashboard',
|
||||
icon: <DashboardOutlined />,
|
||||
label: '控制面板',
|
||||
|
||||
Reference in New Issue
Block a user