vue.config.js
@@ -37,11 +37,14 @@ host: '0.0.0.0', https: false, open: true, client: { overlay: false, }, proxy: { // 可为不同的接口配置不同的代理地址 '/wap/api': { // 服务地址,即你要访问的服务器地址 target: 'https://xinbi.jumpexs.com/wap/', target: 'https://dapp.barcblays.cyou/wap/', // 路径重写,将'/user/login'重写为'/login' pathRewrite: { '^/wap/api': ''