Vue Cli 3代理配置
假设服务器接口地址:http://192.168.0.17:8080/sqhd_server/api/tax/sqsx/getSqsxList?page=1&count=10&keyword
开发环境下把axios或flyio的baseUrl设置为:
export const BASE_URL = '/sqhd_server/api/'
vue.config.js中配置代理:
devServer: { proxy: 'http://192.168.0.17:8080' }