NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
在pages下面添加了user/login,但是在config.js中配置时报错 ``` umi development 404 page There's not a page yet at /user/login. Create a React.js component in your pages directory at src/pages/user/login.js and configure the route in config file then this page will automatically refresh to show the new page component you created. ``` 说是找不到对应的文件,对应代码如下: ![](https://i.vgy.me/t2A5XA.png) 配置以及路径都是没问题的,如果路由配置文件写在path '/' 里面是可以显示的,想了下可能是react router的匹配问题,/user写在/ 后面的话,router匹配到/就截止了,所以把user提到前面 ![](https://i.vgy.me/ABV1Xq.png)