From f17642b243aff4e700a147a688466b68823dd7e4 Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Sat, 25 Sep 2021 12:11:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=8A=A8=E6=80=81=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .umirc.ts | 6 +++--- src/components/pageLoading.tsx | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 src/components/pageLoading.tsx diff --git a/.umirc.ts b/.umirc.ts index a81b18ba..fb9c1015 100644 --- a/.umirc.ts +++ b/.umirc.ts @@ -7,9 +7,9 @@ export default defineConfig({ nodeModulesTransform: { type: 'none', }, - // antd: { - // dark: true - // }, + dynamicImport: { + loading: '@/components/pageLoading', + }, fastRefresh: {}, favicon: '/images/g5.ico', proxy: { diff --git a/src/components/pageLoading.tsx b/src/components/pageLoading.tsx new file mode 100644 index 00000000..18327f18 --- /dev/null +++ b/src/components/pageLoading.tsx @@ -0,0 +1,3 @@ +import { PageLoading } from '@ant-design/pro-layout'; + +export default PageLoading;