lanjianrong 4 年之前
父节点
当前提交
58715ee2ff
共有 2 个文件被更改,包括 10 次插入3 次删除
  1. 7 1
      src/pages/Dashboard/index.tsx
  2. 3 2
      src/pages/Project/Management/index.tsx

+ 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>
   )
 }