update
This commit is contained in:
+5
-2
@@ -26,6 +26,7 @@ import AccountManagement from './pages/AccountManagement'
|
|||||||
import Messages from './pages/Messages'
|
import Messages from './pages/Messages'
|
||||||
import About from './pages/About'
|
import About from './pages/About'
|
||||||
import Guide from './pages/Guide'
|
import Guide from './pages/Guide'
|
||||||
|
import Download from './pages/Download'
|
||||||
|
|
||||||
const { Header, Sider, Content } = Layout
|
const { Header, Sider, Content } = Layout
|
||||||
|
|
||||||
@@ -125,7 +126,8 @@ function App() {
|
|||||||
{ key: 'devices', icon: <DesktopOutlined />, label: '设备管理' },
|
{ key: 'devices', icon: <DesktopOutlined />, label: '设备管理' },
|
||||||
{ key: 'personnel', icon: <TeamOutlined />, label: '人员管理' },
|
{ key: 'personnel', icon: <TeamOutlined />, label: '人员管理' },
|
||||||
...(user?.role === 'admin' ? [{ key: 'accounts', icon: <UserSwitchOutlined />, 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个核心入口)
|
// 移动端底部导航(5个核心入口)
|
||||||
@@ -147,13 +149,14 @@ function App() {
|
|||||||
case 'accounts': return user?.role === 'admin' ? <AccountManagement user={user} /> : <Dashboard onNavigate={setCurrentPage} />
|
case 'accounts': return user?.role === 'admin' ? <AccountManagement user={user} /> : <Dashboard onNavigate={setCurrentPage} />
|
||||||
case 'notifications': return <NotificationManagement user={user} />
|
case 'notifications': return <NotificationManagement user={user} />
|
||||||
case 'messages': return <Messages user={user} />
|
case 'messages': return <Messages user={user} />
|
||||||
|
case 'download': return <Download />
|
||||||
default: return <Dashboard onNavigate={setCurrentPage} />
|
default: return <Dashboard onNavigate={setCurrentPage} />
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const getPageTitle = () => {
|
const getPageTitle = () => {
|
||||||
const titles = {
|
const titles = {
|
||||||
dashboard: '系统首页', about: '软件简介', guide: '使用说明',
|
dashboard: '系统首页', about: '软件简介', guide: '使用说明',download: '软件下载',
|
||||||
devices: '设备管理', personnel: '人员管理', accounts: '账户管理',
|
devices: '设备管理', personnel: '人员管理', accounts: '账户管理',
|
||||||
notifications: '通知管理', messages: '消息对话'
|
notifications: '通知管理', messages: '消息对话'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user