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

This commit is contained in:
francis-fh
2026-06-05 13:58:56 +08:00
parent e467fcc2cf
commit fdd80c6cd1
6 changed files with 86 additions and 28 deletions

21
src/loading.tsx Normal file
View 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 />;
}