Browse Source
feat: better organization mode (#10627)
* chore: better component
* chore: no auto
pull/10658/head
DaoYuan
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
16 additions and
4 deletions
-
src/app.tsx
-
src/components/index.ts
-
src/pages/User/Login/index.tsx
|
|
|
@ -1,5 +1,5 @@ |
|
|
|
import Footer from '@/components/Footer'; |
|
|
|
import { Question, SelectLang } from '@/components/RightContent'; |
|
|
|
import { Footer } from '@/components'; |
|
|
|
import { Question, SelectLang } from '@/components'; |
|
|
|
import { LinkOutlined } from '@ant-design/icons'; |
|
|
|
import type { Settings as LayoutSettings } from '@ant-design/pro-components'; |
|
|
|
import { SettingDrawer } from '@ant-design/pro-components'; |
|
|
|
@ -9,7 +9,7 @@ import defaultSettings from '../config/defaultSettings'; |
|
|
|
import { errorConfig } from './requestErrorConfig'; |
|
|
|
import { currentUser as queryCurrentUser } from '@/services/ant-design-pro/api'; |
|
|
|
import React from 'react'; |
|
|
|
import { AvatarDropdown, AvatarName } from '@/components/RightContent/AvatarDropdown'; |
|
|
|
import { AvatarDropdown, AvatarName } from '@/components'; |
|
|
|
const isDev = process.env.NODE_ENV === 'development'; |
|
|
|
const loginPath = '/user/login'; |
|
|
|
|
|
|
|
|
|
|
|
@ -0,0 +1,12 @@ |
|
|
|
/** |
|
|
|
* 这个文件作为组件的目录 |
|
|
|
* 目的是统一管理对外输出的组件,方便分类 |
|
|
|
*/ |
|
|
|
/** |
|
|
|
* 布局组件 |
|
|
|
*/ |
|
|
|
import Footer from './Footer'; |
|
|
|
import { Question, SelectLang } from './RightContent'; |
|
|
|
import { AvatarDropdown, AvatarName } from './RightContent/AvatarDropdown'; |
|
|
|
|
|
|
|
export { Footer, Question, SelectLang, AvatarDropdown, AvatarName }; |
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
import Footer from '@/components/Footer'; |
|
|
|
import { Footer } from '@/components'; |
|
|
|
import { login } from '@/services/ant-design-pro/api'; |
|
|
|
import { getFakeCaptcha } from '@/services/ant-design-pro/login'; |
|
|
|
import { |
|
|
|
|