Skip to content

Commit

Permalink
chore(example): add global 'Loading' to ant design pro (#12570)
Browse files Browse the repository at this point in the history
  • Loading branch information
RSS1102 authored Jul 17, 2024
1 parent f21779e commit ad3abcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions examples/ant-design-pro/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ import { currentUser as queryCurrentUser } from './services/ant-design-pro/api';
const isDev = process.env.NODE_ENV === 'development';
const loginPath = '/user/login';

// TODO: 不知道这是啥?
/** 获取用户信息比较慢的时候会展示一个 loading */
// export const initialStateConfig = {
// loading: <PageLoading />,
// };

/**
* @see https://umijs.org/zh-CN/plugins/plugin-initial-state
* */
Expand Down
5 changes: 5 additions & 0 deletions examples/ant-design-pro/src/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { PageLoading } from '@ant-design/pro-components';
const Loading = () => {
return <PageLoading />;
};
export default Loading;

0 comments on commit ad3abcc

Please sign in to comment.