diff --git a/admin-web/config/proxy/proxy.dev.js b/admin-web/config/proxy/proxy.dev.js index 9f7a52d6f..e98ea1cc8 100644 --- a/admin-web/config/proxy/proxy.dev.js +++ b/admin-web/config/proxy/proxy.dev.js @@ -1,6 +1,6 @@ // 开发环境,的代理配置 -export default { +module.exports = { '/admin-api/': { target: 'http://127.0.0.1:18083/', // target: 'http://180.167.213.26:18083/', diff --git a/admin-web/config/proxy/proxy.prod.js b/admin-web/config/proxy/proxy.prod.js index a8d5977a2..14f7cc78e 100644 --- a/admin-web/config/proxy/proxy.prod.js +++ b/admin-web/config/proxy/proxy.prod.js @@ -1,6 +1,6 @@ // production 配置文件 -export default { +module.exports = { '/admin-api/': { target: 'http://api.shop.iocoder.cn:18099/admin-api', changeOrigin: true,