This commit is contained in:
mei
2026-08-11 10:22:12 +08:00
parent fb326279fa
commit 2b1686b996
2 changed files with 25 additions and 2 deletions
+5 -2
View File
@@ -26,6 +26,7 @@ import AccountManagement from './pages/AccountManagement'
import Messages from './pages/Messages'
import About from './pages/About'
import Guide from './pages/Guide'
import Download from './pages/Download'
const { Header, Sider, Content } = Layout
@@ -125,7 +126,8 @@ function App() {
{ key: 'devices', icon: <DesktopOutlined />, label: '设备管理' },
{ key: 'personnel', icon: <TeamOutlined />, label: '人员管理' },
...(user?.role === 'admin' ? [{ key: 'accounts', icon: <UserSwitchOutlined />, label: '账户管理' }] : []),
{ key: 'notifications', icon: <BellOutlined />, label: '通知管理' }
{ key: 'notifications', icon: <BellOutlined />, label: '通知管理' },
{ key: 'download', icon: <InfoCircleOutlined />, label: '软件下载' },
]
// 移动端底部导航(5个核心入口)
@@ -147,13 +149,14 @@ function App() {
case 'accounts': return user?.role === 'admin' ? <AccountManagement user={user} /> : <Dashboard onNavigate={setCurrentPage} />
case 'notifications': return <NotificationManagement user={user} />
case 'messages': return <Messages user={user} />
case 'download': return <Download />
default: return <Dashboard onNavigate={setCurrentPage} />
}
}
const getPageTitle = () => {
const titles = {
dashboard: '系统首页', about: '软件简介', guide: '使用说明',
dashboard: '系统首页', about: '软件简介', guide: '使用说明',download: '软件下载',
devices: '设备管理', personnel: '人员管理', accounts: '账户管理',
notifications: '通知管理', messages: '消息对话'
}
+20
View File
@@ -0,0 +1,20 @@
import React from 'react'
import { Card, Divider } from 'antd'
function Download() {
return (
<div className="download-page">
<Card>
<h1>影视星河 · 设备管理系统 v2.1</h1>
<Divider />
<h2>软件下载</h2>
<a href="/assets/影视星河设备管理系统 Setup 1.0.0.exe" download>
<button>点击下载</button>
</a>
</Card>
</div>
)
}
export default Download