假設服務器接口地址:http://192.168.0.17:8080/sqhd_server/api/tax/sqsx/getSqsxList?page=1&count=10&keywordjavascript
開發環境下把axios或flyio的baseUrl設置爲:vue
export const BASE_URL = '/sqhd_server/api/'
vue.config.js中配置代理:java
devServer: { proxy: 'http://192.168.0.17:8080' }