diff --git a/vue.config.js b/vue.config.js index 10623e3..0c0803b 100644 --- a/vue.config.js +++ b/vue.config.js @@ -24,9 +24,12 @@ module.exports = { port: 1888, proxy: { "/api": { - target: 'http://39.98.44.136:80', + target: 'http://39.98.44.136:8082', ws: true, changeOrigin: true, + pathRewrite: { + "^/api": "" + } }, "/qq/map": { //本地服务接口地址