From 2eb06bd720a7a1a6970187f993912d70b8ffcdba Mon Sep 17 00:00:00 2001 From: Dawn1Ocean <1785590531@qq.com> Date: Sun, 31 Mar 2024 14:44:30 +0800 Subject: [PATCH] change footer --- src/app.tsx | 7 ++----- src/components/Footer/index.tsx | 30 ++++++++++++++---------------- src/components/index.ts | 4 ++-- src/pages/User/Login/index.tsx | 4 ++-- 4 files changed, 20 insertions(+), 25 deletions(-) diff --git a/src/app.tsx b/src/app.tsx index 2aa0115..472c32e 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -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 {avatarChildren}; }, }, - waterMarkProps: { - content: initialState?.currentUser?.name, - }, - footerRender: () =>