|
|
|
@ -7,6 +7,7 @@ import RightContent from '@/components/RightContent'; |
|
|
|
import Footer from '@/components/Footer'; |
|
|
|
import { currentUser as queryCurrentUser } from './services/ant-design-pro/api'; |
|
|
|
import { BookOutlined, LinkOutlined } from '@ant-design/icons'; |
|
|
|
import defaultSettings from '../config/defaultSettings'; |
|
|
|
|
|
|
|
const isDev = process.env.NODE_ENV === 'development'; |
|
|
|
const loginPath = '/user/login'; |
|
|
|
@ -40,12 +41,12 @@ export async function getInitialState(): Promise<{ |
|
|
|
return { |
|
|
|
fetchUserInfo, |
|
|
|
currentUser, |
|
|
|
settings: {}, |
|
|
|
settings: defaultSettings, |
|
|
|
}; |
|
|
|
} |
|
|
|
return { |
|
|
|
fetchUserInfo, |
|
|
|
settings: {}, |
|
|
|
settings: defaultSettings, |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
|