diff --git a/src/common/components/layout/MyPageContainer.tsx b/src/common/components/layout/MyPageContainer.tsx index 5883f18..3dfb9f2 100644 --- a/src/common/components/layout/MyPageContainer.tsx +++ b/src/common/components/layout/MyPageContainer.tsx @@ -1,10 +1,10 @@ +import { useMyState } from '@/common'; import { CloseOutlined, ReloadOutlined } from '@ant-design/icons'; import { PageContainer, PageContainerProps } from '@ant-design/pro-components'; import { history, useLocation } from '@umijs/max'; import type { MenuProps } from 'antd'; import { Dropdown, message, Space, Tabs } from 'antd'; import React, { useCallback, useEffect, useRef, useState } from 'react'; -import { useMyState } from '@/common'; import AvatarProps from './AvatarProps'; import './MyPageContainer.scss'; @@ -362,26 +362,26 @@ export function MyPageContainer({ ); }; - if (!enableTabs || tabs.length === 0) { - return ( - - - {children} - - - ); - } + // if (!enableTabs || tabs.length === 0) { + // return ( + // + // + // {children} + // + // + // ); + // } return ( {/* 右侧:用户信息 */} -
+
@@ -421,7 +420,7 @@ export function MyPageContainer({
), - style: { backgroundColor: '#FFF' }, + style: { backgroundColor: '#FFF', padding: '0 24px !important' }, }} token={{ paddingBlockPageContainerContent: 0,