songshenma

Results 2 issues of songshenma

描述:二次开发了代码,同时包含mock(主要是queryUserInfo、 loginUser、queryRouteList这些系统相关请求)和真实API请求(自己业务相关)。已知umi build之后mock无法使用,目前在build之后,设置了ngnix(7000端口)中通过跨域请求umi-serve开启的mock服务(7001端口提供,并且通过postman测试成功)来访问系统相关数据,来模拟请求后端数据。但部署在ngnix后登录的页面都是404。 相关截图如下: ![image](https://user-images.githubusercontent.com/19419803/85013595-70457680-b197-11ea-9509-fc37da738188.png) 我的ngnix配置如下: ![image](https://user-images.githubusercontent.com/19419803/85013383-0cbb4900-b197-11ea-88eb-21648d8fe8ce.png) 现在怀疑几个地方出问题了: 1.使用的是umi的动态路由配置,没有静态路由文件? 2. .umirc.js中publicPath:'./'和 history:'hash'已设置,是否有问题? 请帮忙解决下,很困扰。

yAxis: [{ …… opposite: true }] doesn't work for a double Y axis on both sides of the graph