小调整

This commit is contained in:
Wang Kejun 2022-09-02 13:53:21 +08:00
parent e914ac09d1
commit 0925351e3a
2 changed files with 5 additions and 7 deletions

View File

@ -1,10 +1,10 @@
import React, { useEffect } from 'react';
import React, { useEffect, memo } from 'react';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
function Loading() {
export default memo(() => {
//componentDidMount
useEffect(() => {
NProgress.start();
@ -17,6 +17,4 @@ function Loading() {
}, []);
return null;
}
export default Loading
});

View File

@ -3,10 +3,10 @@ import React from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import { I18nextProvider } from 'react-i18next';
import { ResponsiveProvider } from 'oak-frontend-base/lib/platforms/web';
import './index.less';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { ResponsiveProvider } from 'oak-frontend-base/lib/platforms/web/responsive';
import { getAppType } from './utils/env';
import initialize from '../../src/initialize';