fix: change router

This commit is contained in:
Dawn1Ocean
2024-03-31 21:21:22 +08:00
parent a0616d8fca
commit 6ea019a98f
9 changed files with 45 additions and 29 deletions
+1 -2
View File
@@ -1,4 +1,4 @@
import { AvatarDropdown, AvatarName, PageFooter, Question } from '@/components';
import { AvatarDropdown, AvatarName, PageFooter } 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';
@@ -49,7 +49,6 @@ export async function getInitialState(): Promise<{
// ProLayout 支持的api https://procomponents.ant.design/components/layout
export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) => {
return {
actionsRender: () => [<Question key="doc" />],
avatarProps: {
src: initialState?.currentUser?.avatar,
title: <AvatarName />,