Files
shz-admin/src/loading.tsx
francis-fh fdd80c6cd1
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
11
2026-06-05 13:58:56 +08:00

22 lines
680 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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