Closed haoyongliang closed 9 months ago
执行npm run dev:mp-weixin 代理不生效,service的配置如下:,我是为了更直观点这么写的,感觉这个配置是H5的专用的,在浏览器能正常代理到服务器 server: { port: 8080, host: true, open: true, proxy: { '/api': { target: "http://127.0.0.1:8080", changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, '/jeecg-boot'), }, }, },
已解决
执行npm run dev:mp-weixin 代理不生效,service的配置如下:,我是为了更直观点这么写的,感觉这个配置是H5的专用的,在浏览器能正常代理到服务器 server: { port: 8080, host: true, open: true, proxy: { '/api': { target: "http://127.0.0.1:8080", changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, '/jeecg-boot'), }, }, },