Closed pmg1989 closed 7 years ago
@sorrycc ,请问下,我在你的demo里,router.js文件里 path:users的路径下新建了个childRoutes path:add,为什么页面不渲染这个路径的组件,却还是渲染users组件呢?
我访问 http://localhost:8000/users/add 路由时,刷新是能找到路径的,但它还是渲染的users页面, 另外我调整了下index.html
才可以,不知道是不是还需要配置哪里呢?
确实是应该写成 /index.js。
/index.js
@sorrycc ,请问下,我在你的demo里,router.js文件里 path:users的路径下新建了个childRoutes path:add,为什么页面不渲染这个路径的组件,却还是渲染users组件呢?