登录 个人 与 零星采购
This commit is contained in:
10
src/app.ts
Normal file
10
src/app.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { history } from 'umi';
|
||||
|
||||
export function onRouteChange({ location }: any) {
|
||||
// const token = localStorage.getItem('token');
|
||||
// const whiteList = ['/login', '/user/register', '/403', '/404'];
|
||||
// if (!token && !whiteList.includes(location.pathname)) {
|
||||
// history.replace('/login');
|
||||
// }
|
||||
|
||||
}
|
Reference in New Issue
Block a user