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;