diff --git a/tcs-iptv/web-console/src/App.jsx b/tcs-iptv/web-console/src/App.jsx index 1249cb0..607046b 100644 --- a/tcs-iptv/web-console/src/App.jsx +++ b/tcs-iptv/web-console/src/App.jsx @@ -1,5 +1,5 @@ -import React from 'react' -import { Layout, Typography, Alert, Tabs } from 'antd' +import React, { useState } from 'react' +import { Layout, Typography, Menu } from 'antd' import FlowDemo from './FlowDemo.jsx' import RoleDesk from './RoleDesk.jsx' import ScreenFusion from './ScreenFusion.jsx' @@ -7,28 +7,37 @@ import ScreenFusion from './ScreenFusion.jsx' const { Header, Content } = Layout const { Title, Text } = Typography +const VIEWS = { + desk: , + flow: , + fusion: , +} + +const MENU_ITEMS = [ + { key: 'desk', label: '角色工作台(多方协作)' }, + { key: 'flow', label: '全流程演示(一键)' }, + { key: 'fusion', label: '大小屏融合(OTT/手机)' }, +] + export default function App() { + const [view, setView] = useState('desk') return ( -
- TCS-IPTV 内容可信锁定系统 - +
+ + TCS-IPTV 内容可信锁定系统 + + 陕西IPTV运营公司 · MA码+哈希双锚定 + setView(e.key)} items={MENU_ITEMS} + style={{ background: 'transparent', flex: 1, justifyContent: 'flex-end', borderBottom: 'none', minWidth: 0 }} + />
- - }, - { key: 'flow', label: '全流程演示(一键)', children: }, - { key: 'fusion', label: '大小屏融合(OTT/手机)', children: }, - ]} - /> + {VIEWS[view]} )