11
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
This commit is contained in:
21
src/loading.tsx
Normal file
21
src/loading.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { PageLoading } from '@ant-design/pro-components';
|
||||
import { Spin } from 'antd';
|
||||
import { isJobPortalPage } from '@/utils/routeContext';
|
||||
import './loading.less';
|
||||
|
||||
/** 路由 chunk 加载时的占位(Umi 约定入口) */
|
||||
export default function RouteLoading() {
|
||||
const pathname = typeof window !== 'undefined' ? window.location.pathname : '';
|
||||
|
||||
if (isJobPortalPage(pathname)) {
|
||||
return (
|
||||
<div className="job-portal-route-loading">
|
||||
<Spin size="large" />
|
||||
<p className="job-portal-route-loading__title">正在加载页面</p>
|
||||
<p className="job-portal-route-loading__hint">请稍候</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return <PageLoading />;
|
||||
}
|
||||
Reference in New Issue
Block a user