fix: page error when edit error

This commit is contained in:
jialin
2025-02-25 14:03:14 +08:00
parent f91311144b
commit 0f7d04e0b9
30 changed files with 317 additions and 306 deletions
+9 -2
View File
@@ -2,9 +2,16 @@ import { PageContainer } from '@ant-design/pro-components';
import { useIntl } from '@umijs/max';
import type { TabsProps } from 'antd';
import { useCallback, useState } from 'react';
import styled from 'styled-components';
import GPUs from './components/gpus';
import Workers from './components/workers';
const Wrapper = styled.div`
.ant-page-header-heading {
padding-inline: 8px;
}
`;
const items: TabsProps['items'] = [
{
key: 'workers',
@@ -27,7 +34,7 @@ const Resources = () => {
}, []);
return (
<>
<Wrapper>
<PageContainer
ghost
header={{
@@ -47,7 +54,7 @@ const Resources = () => {
}}
extra={[]}
></PageContainer>
</>
</Wrapper>
);
};