Browse Source

feat: better organization mode (#10627)

* chore: better component

* chore: no auto
pull/10658/head
DaoYuan 3 years ago
committed by GitHub
parent
commit
fd4a4a0183
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/app.tsx
  2. 12
      src/components/index.ts
  3. 2
      src/pages/User/Login/index.tsx

6
src/app.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';

12
src/components/index.ts

@ -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 };

2
src/pages/User/Login/index.tsx

@ -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 {

Loading…
Cancel
Save