diff --git a/ruoyi-ui/vue.config.js b/ruoyi-ui/vue.config.js index b6e02c50..10f05a2d 100644 --- a/ruoyi-ui/vue.config.js +++ b/ruoyi-ui/vue.config.js @@ -32,29 +32,14 @@ module.exports = { host: '0.0.0.0', port: port, open: true, - proxy: { - // '/jhapi/profile':{ - // target: `http://62.234.3.186/jhapi/profile/`, - // changeOrigin: true, - // pathRewrite: { - // '^/jhapi/profile':'/' - // } - // }, - '/jhapi':{ - //target: `http://62.234.3.186/jhapi/`, - target: `http://127.0.0.1:8090/jhapi/`, + proxy: { + [process.env.VUE_APP_BASE_API]: { + target: `http://127.0.0.1:80/jhapi`, changeOrigin: true, pathRewrite: { - '^/jhapi':'/' + ['^' + process.env.VUE_APP_BASE_API]: '' } - }, - '/profile':{ - target: `http://62.234.3.186/profile/`, - changeOrigin: true, - pathRewrite: { - '^/profile':'/' - } - } + } }, disableHostCheck: true },