修改默认接口地址

dev
smallchill 6 years ago
parent d5bbfa2cb2
commit 520ac2e044
  1. 4
      vue.config.js

@ -28,9 +28,9 @@ module.exports = {
proxy: { proxy: {
'/api': { '/api': {
//本地服务接口地址 //本地服务接口地址
// target: 'http://localhost', target: 'http://localhost',
//远程演示服务地址,可用于直接启动项目 //远程演示服务地址,可用于直接启动项目
target: 'https://saber.bladex.vip/api', //target: 'https://saber.bladex.vip/api',
ws: true, ws: true,
pathRewrite: { pathRewrite: {
'^/api': '/' '^/api': '/'

Loading…
Cancel
Save