切换api地址为本地

pull/59/head
smallchill 6 years ago
parent 2385ce478a
commit ed5baff872
  1. 4
      vue.config.js

@ -26,9 +26,9 @@ module.exports = {
proxy: {
'/api': {
//本地服务接口地址
//target: 'http://localhost',
target: 'http://localhost',
//远程演示服务地址
target: 'https://saber.bladex.vip/api',
//target: 'https://saber.bladex.vip/api',
ws: true,
pathRewrite: {
'^/api': '/'

Loading…
Cancel
Save