路由跳转失效
pxr89 opened this issue · 1 comments
pxr89 commented
page页面配置:
export default () => ( <Router> <Switch> {/* <Route component={NotFound}/> */} <Route exact path="/app" component={App} /> <Route exact path="/404" component={NotFound} /> <Route exact path="/login" component={Login} /> {/* <Route exact path="/" render={() => <Redirect to="/app/dashboard/index" push />} /> */} </Switch> </Router> );
chrome 访问
http://localhost:3007/login
匹配不到/login组件,显示空白界面了
yezihaohao commented
没复现,可能是你把登录页面的组件删除了。