dvajs / dva-example-user-dashboard

👲 👬 👨‍👩‍👧 👨‍👩‍👦‍👦
446 stars 205 forks source link

path为二级路由时,页面不渲染问题 #5

Closed pmg1989 closed 7 years ago

pmg1989 commented 7 years ago

@sorrycc ,请问下,我在你的demo里,router.js文件里 path:users的路径下新建了个childRoutes path:add,为什么页面不渲染这个路径的组件,却还是渲染users组件呢? image

image

pmg1989 commented 7 years ago

我访问 http://localhost:8000/users/add 路由时,刷新是能找到路径的,但它还是渲染的users页面, 另外我调整了下index.html

才可以,不知道是不是还需要配置哪里呢?

sorrycc commented 7 years ago

确实是应该写成 /index.js