vue.config.js
@@ -34,15 +34,19 @@ proxy: { '/api': { //本地服务接口地址 // target: 'http://192.168.1.125:82/', target: 'https://web.byisf.com:18001/api/', target: 'http://localhost:82/', //target: 'https://web.byisf.com:18001/api/', //远程演示服务地址,可用于直接启动项目 //target: 'https://saber.bladex.vip/api', ws: true, pathRewrite: { '^/api': '/' } }, '/backstage-temporary-api': { target: 'http://fengkong.sf-express.com/backstage-temporary-api/', //要访问的源 changeOrigin: true //允许跨域 } } } }; };