feat(web): 优化编辑界面
This commit is contained in:
@@ -2,6 +2,7 @@ import {ProLayout} from '@ant-design/pro-components'
|
||||
import React from 'react'
|
||||
import {Outlet, useLocation, useNavigate} from 'react-router'
|
||||
import {menus} from '../route.tsx'
|
||||
import {ConfigProvider} from 'antd'
|
||||
|
||||
const App: React.FC = () => {
|
||||
const navigate = useNavigate()
|
||||
@@ -34,7 +35,18 @@ const App: React.FC = () => {
|
||||
style={{minHeight: '100vh'}}
|
||||
contentStyle={{backgroundColor: 'white', padding: '10px 10px 10px 20px'}}
|
||||
>
|
||||
<Outlet/>
|
||||
<ConfigProvider
|
||||
theme={{
|
||||
components: {
|
||||
Card: {
|
||||
bodyPadding: 0,
|
||||
bodyPaddingSM: 0,
|
||||
}
|
||||
}
|
||||
}}
|
||||
>
|
||||
<Outlet/>
|
||||
</ConfigProvider>
|
||||
</ProLayout>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user