feat:组件框架
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
// @ts-nocheck
|
||||
// This file is generated by Umi automatically
|
||||
// DO NOT CHANGE IT MANUALLY!
|
||||
import nprogress from '/Users/donghym/Desktop/day/UI/Nova/node_modules/.pnpm/nprogress@0.2.0/node_modules/nprogress';
|
||||
import './nprogress.css';
|
||||
import UserLoading from '/Users/donghym/Desktop/day/UI/Nova/node_modules/.pnpm/dumi@2.4.28_@babel+core@7.29.7_@swc+helpers@0.5.15_@types+node@25.9.1_@types+react@18.3_cf46fd6bbea4e97c0978eb785c920599/node_modules/dumi/dist/client/pages/Loading';
|
||||
import React, { useLayoutEffect, type FC } from 'react';
|
||||
import { useSiteData } from 'dumi';
|
||||
|
||||
const DumiLoading: FC = () => {
|
||||
const { setLoading } = useSiteData();
|
||||
|
||||
useLayoutEffect(() => {
|
||||
setLoading(true);
|
||||
nprogress.start();
|
||||
|
||||
return () => {
|
||||
setLoading(false);
|
||||
nprogress.done();
|
||||
}
|
||||
}, []);
|
||||
|
||||
return <UserLoading />
|
||||
}
|
||||
|
||||
export default DumiLoading;
|
||||
Reference in New Issue
Block a user