vue-element-admin
vue-element-admin copied to clipboard
:tada: A magical vue admin https://panjiachen.github.io/vue-element-admin
## Question(提问) ``` TypeError: Cannot read property 'split' of null at required (C:\Users\chenzw\IdeaProjects\otary-ui-manager\node_modules\requires-port\index.js:13:23) at Object.common.setupOutgoing (C:\Users\chenzw\IdeaProjects\otary-ui-manager\node_modules\http-proxy\lib\http-proxy\common.js:101:7) at Array.stream (C:\Users\chenzw\IdeaProjects\otary-ui-manager\node_modules\http-proxy\lib\http-proxy\passes\web-incoming.js:127:14) at ProxyServer. (C:\Users\chenzw\IdeaProjects\otary-ui-manager\node_modules\http-proxy\lib\http-proxy\index.js:81:21) at middleware (C:\Users\chenzw\IdeaProjects\otary-ui-manager\node_modules\http-proxy-middleware\lib\index.js:46:13) at handle (C:\Users\chenzw\IdeaProjects\otary-ui-manager\node_modules\webpack-dev-server\lib\Server.js:318:18) at app.use...
跨域配置无效
1.删除mock相关 2.proxy配置如下: proxy: { '/api': { target: 'http://localhost:8080', // API服务器的地址 ws: true, // 代理websockets changeOrigin: true, // 虚拟的站点需要更管origin pathRewrite: { // 重写路径 比如'/api/aaa/ccc'重写为'/aaa/ccc' '^/api': '' } } } 3.baseURL='/api' 4.执行登录方法,报404,,http:localhost:9527/api/user/login找不到,无法把URL转到http:localhost:8080,...
## Question(提问) #### Steps to reproduce(问题复现步骤) #### Screenshot or Gif(截图或动态图) #### Link to minimal reproduction(最小可在线还原demo) #### Other relevant information(格外信息) - Your OS: - Node.js version: - vue-element-admin version: