lanjianrong 4 lat temu
rodzic
commit
58715ee2ff

+ 7 - 1
src/pages/Dashboard/index.tsx

@@ -1,5 +1,11 @@
+import { PageContainer } from '@ant-design/pro-layout'
+
 const Dashboard = () => {
-  return <div>这里是首页</div>
+  return (
+    <PageContainer>
+      <div>这里是首页</div>
+    </PageContainer>
+  )
 }
 
 export default Dashboard

+ 3 - 2
src/pages/Project/Management/index.tsx

@@ -10,6 +10,7 @@ import type { ProjectModelState } from '../model'
 import { DeleteOutlined } from '@ant-design/icons'
 import ProjectModal, { ModalType } from './components/ProjectModal'
 import dayjs from 'dayjs'
+import { PageContainer } from '@ant-design/pro-layout'
 
 type ListProps = ConnectProps & {
   pTypeList: { label: string; value: string }[]
@@ -99,7 +100,7 @@ const List: React.FC<ListProps> = ({ dispatch, pTypeList }) => {
     }
   ]
   return (
-    <div>
+    <PageContainer title={false}>
       <ProTable<API.ProjectListItem>
         rowKey="ID"
         params={state.params}
@@ -140,7 +141,7 @@ const List: React.FC<ListProps> = ({ dispatch, pTypeList }) => {
         reloadTable={() => tRef.current?.reload()}
         setVisible={(visible: boolean) => setState({ ...state, visible })}
       />
-    </div>
+    </PageContainer>
   )
 }