This commit is contained in:
wdvipa
2026-02-09 16:33:52 +08:00
parent 52c6322a24
commit 28040495c8
63 changed files with 26743 additions and 301 deletions

35
src/App.tsx Normal file
View File

@@ -0,0 +1,35 @@
// React 17+ 使用新的JSX转换无需显式导入React
import { Provider } from 'react-redux'
import { ConfigProvider, App as AntdApp } from 'antd'
import zhCN from 'antd/locale/zh_CN'
import { store } from './store/store'
import RemoteControlApp from './components/RemoteControlApp'
import AuthGuard from './components/AuthGuard'
import './App.css'
/**
* 主应用组件
*/
function App() {
return (
<Provider store={store}>
<ConfigProvider
locale={zhCN}
theme={{
token: {
colorPrimary: '#1890ff',
borderRadius: 6,
},
}}
>
<AntdApp>
<AuthGuard>
<RemoteControlApp />
</AuthGuard>
</AntdApp>
</ConfigProvider>
</Provider>
)
}
export default App