diff --git a/config/config.ts b/config/config.ts index 1bb95274..f8a93a26 100644 --- a/config/config.ts +++ b/config/config.ts @@ -81,17 +81,6 @@ export default defineConfig({ routePrefetch: { defaultPrefetch: 'intent' }, - // fastRefresh: false, - targets: { - firefox: 79 - }, - extraBabelIncludes: [ - /node_modules\/react-error-overlay/, - /node_modules\/@umijs/, - /node_modules\/strip-ansi/, - /node_modules\/antd/, - /node_modules\/rc-/ - ], keepalive: keepAlive, locale: { antd: true, diff --git a/src/global.less b/src/global.less index c8dc7cca..d27b32b6 100644 --- a/src/global.less +++ b/src/global.less @@ -108,6 +108,18 @@ html[data-theme='realDark'] { .ant-result-image { opacity: 0.9; } + + .ant-pro-page-container-affix .ant-pro-page-container-warp { + background-color: #292929 !important; + transition: none !important; + } +} + +html[data-theme='light'] { + .ant-pro-page-container-affix .ant-pro-page-container-warp { + background-color: #fff !important; + transition: none !important; + } } body { @@ -118,6 +130,10 @@ body { width: 0; } + .ant-tabs-tab { + transition: none !important; + } + .ant-pro-page-container-affix { .ant-affix { top: 0 !important; @@ -786,6 +802,10 @@ body { .ant-pro-page-container-affix .ant-affix .ant-pro-page-container-warp { box-shadow: none; border-bottom: 1px solid var(--ant-color-split); + + .ant-page-header-heading-title { + color: var(--ant-color-text) !important; + } } .ant-page-header .ant-page-header-heading-extra { diff --git a/src/layouts/index.tsx b/src/layouts/index.tsx index 55a6e570..1871639c 100644 --- a/src/layouts/index.tsx +++ b/src/layouts/index.tsx @@ -52,8 +52,7 @@ const CHECK_RESOURCE_PATH = [ '/resources/workers', '/cluster-management/clusters/list', '/cluster-management/credentials', - '/cluster-management/clusters/create', - '' + '/cluster-management/clusters/create' ]; type NewRoute = IRoute & { @@ -334,7 +333,7 @@ export default (props: any) => { { )} {NoResourceModal} + {contextHolder} - {contextHolder} ); };