|
|
|
@ -6,7 +6,7 @@ import type { AppProps } from 'next/app';
|
|
|
|
import { createStore } from 'redux';
|
|
|
|
import { createStore } from 'redux';
|
|
|
|
import { Provider } from 'react-redux';
|
|
|
|
import { Provider } from 'react-redux';
|
|
|
|
import '../style/global.less';
|
|
|
|
import '../style/global.less';
|
|
|
|
import { ConfigProvider } from '@arco-design/web-react';
|
|
|
|
import { ConfigProvider, Message } from '@arco-design/web-react';
|
|
|
|
import zhCN from '@arco-design/web-react/es/locale/zh-CN';
|
|
|
|
import zhCN from '@arco-design/web-react/es/locale/zh-CN';
|
|
|
|
import enUS from '@arco-design/web-react/es/locale/en-US';
|
|
|
|
import enUS from '@arco-design/web-react/es/locale/en-US';
|
|
|
|
import axios from 'axios';
|
|
|
|
import axios from 'axios';
|
|
|
|
@ -66,6 +66,7 @@ export default function MyApp({
|
|
|
|
fetchUserInfo();
|
|
|
|
fetchUserInfo();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (window.location.pathname.replace(/\//g, '') !== 'login') {
|
|
|
|
else if (window.location.pathname.replace(/\//g, '') !== 'login') {
|
|
|
|
|
|
|
|
Message.error('token过期,请重新登录');
|
|
|
|
window.location.pathname = '/login';
|
|
|
|
window.location.pathname = '/login';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, []);
|
|
|
|
}, []);
|
|
|
|
|