diff --git a/config/proxy.js b/config/proxy.js index 6ed7f93..1ba865a 100644 --- a/config/proxy.js +++ b/config/proxy.js @@ -9,11 +9,11 @@ export default { dev: { '/kitchen/api/': { - target: 'http://10.2.1.26:21527', + target: 'https://localhost:5001', changeOrigin: true, secure: false, //关闭证书验证 pathRewrite: { - '^': '', + '/kitchen/api/': '/api/', }, }, // Nginx发布的时候需要配置