change footer

This commit is contained in:
Dawn1Ocean
2024-03-31 14:44:30 +08:00
parent 54290fa2fc
commit 2eb06bd720
4 changed files with 20 additions and 25 deletions
+2 -5
View File
@@ -1,4 +1,4 @@
import { AvatarDropdown, AvatarName, Footer, Question } from '@/components';
import { AvatarDropdown, AvatarName, PageFooter, Question } from '@/components';
import { currentUser as queryCurrentUser } from '@/services/ant-design-pro/api';
import { LinkOutlined } from '@ant-design/icons';
import type { Settings as LayoutSettings } from '@ant-design/pro-components';
@@ -57,10 +57,7 @@ export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) =
return <AvatarDropdown>{avatarChildren}</AvatarDropdown>;
},
},
waterMarkProps: {
content: initialState?.currentUser?.name,
},
footerRender: () => <Footer />,
footerRender: () => <PageFooter />,
onPageChange: () => {
const { location } = history;
// 如果没有登录,重定向到 login