diff --git a/src/layouts/BasicLayout.tsx b/src/layouts/BasicLayout.tsx index 177cd776cc5c10440309a23de2b2e77ea3e1d44e..deb5407942d37543c1d10f0424f1c4927560dcde 100644 --- a/src/layouts/BasicLayout.tsx +++ b/src/layouts/BasicLayout.tsx @@ -11,7 +11,7 @@ import React, { useState } from 'react'; import logo from '../assets/logo.svg'; import Authorized from '@/utils/Authorized'; import { formatMessage } from 'umi-plugin-react/locale'; -import { isAntDesignProOrDev } from '@/utils/utils'; +import { isAntDesignPro } from '@/utils/utils'; import { BasicLayout as ProLayoutComponents, BasicLayoutProps as ProLayoutComponentsProps, @@ -42,7 +42,7 @@ const menuDataRender = (menuList: MenuDataItem[]): MenuDataItem[] => { }; const footerRender: BasicLayoutProps['footerRender'] = (_, defaultDom) => { - if (!isAntDesignProOrDev()) { + if (!isAntDesignPro()) { return defaultDom; } return ( @@ -51,7 +51,7 @@ const footerRender: BasicLayoutProps['footerRender'] = (_, defaultDom) => {