大厅配置并入杂项配置标签页

This commit is contained in:
yml2213
2026-08-22 14:42:16 +08:00
parent 4bc661c1b5
commit 061bc2636d
2 changed files with 3 additions and 4 deletions
@@ -13,7 +13,6 @@ import CancelRequestsPanel from './panels/CancelRequestsPanel'
import CategoriesPanel from './panels/CategoriesPanel'
import FeedbacksPanel from './panels/FeedbacksPanel'
import FinancePanel from './panels/FinancePanel'
import HallConfigPanel from './panels/HallConfigPanel'
import LeaderboardPanel from './panels/LeaderboardPanel'
import LevelsPanel from './panels/LevelsPanel'
import NotificationsPanel from './panels/NotificationsPanel'
@@ -98,7 +97,6 @@ export default function AdminWorkerPlatformPage() {
{ key: 'leaderboard', label: '排行榜', children: <LeaderboardPanel /> },
{ key: 'finance', label: '资金', children: <FinancePanel /> },
{ key: 'levels', label: '等级权限', children: <LevelsPanel /> },
{ key: 'hall', label: '大厅配置', children: <HallConfigPanel /> },
...(isAdmin
? [{ key: 'notifications', label: '通知配置', children: <NotificationsPanel /> }]
: []),
@@ -125,7 +123,6 @@ function loadActiveTabPreference(): string {
saved === 'workers' ||
saved === 'finance' ||
saved === 'levels' ||
saved === 'hall' ||
saved === 'notifications'
? saved
: 'orders'
@@ -149,7 +146,6 @@ function isWorkerPlatformTab(tab: string | null): tab is string {
'workers',
'finance',
'levels',
'hall',
'notifications',
].includes(String(tab || ''))
}
@@ -12,11 +12,14 @@ import {
} from '@/services/admin'
import type { WorkerAnnouncementConfig } from '@/types/worker-platform'
import HallConfigPanel from './HallConfigPanel'
export default function AnnouncementPanel() {
return (
<Space direction="vertical" size={16} style={{ width: '100%' }}>
<AnnouncementCard />
<MockCustomShopsCard />
<HallConfigPanel />
</Space>
)
}