diff --git a/README.md b/README.md index e4c043a..75f0623 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Ans 智能 BI -This project is initialized with [Ans 智能 BI](https://pro.ant.design). Follow is the quick guide for how to use. +This project is initialized with [Ant Design Pro](https://pro.ant.design). Follow is the quick guide for how to use. ## Environment Prepare diff --git a/config/routes.ts b/config/routes.ts index 61c19a6..28811a7 100644 --- a/config/routes.ts +++ b/config/routes.ts @@ -2,7 +2,10 @@ export default [ { path: '/user', layout: false, - routes: [{ name: '登录', path: '/user/login', component: './User/Login' }], + routes: [ + { name: '登录', path: '/user/login', component: './User/Login' }, + { name: '注册', path: '/user/register', component: './User/Register' } + ], }, { path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome' }, { diff --git a/src/app.tsx b/src/app.tsx index d16c2dc..dc8db41 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -24,7 +24,7 @@ export async function getInitialState(): Promise<{ const res = await getLoginUserUsingGET(); return res.data; } catch (error) { - history.push(loginPath); + //history.push(loginPath); } return undefined; }; @@ -59,8 +59,12 @@ export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) = footerRender: () =>