车辆定位

main
xuechunyuan 3 years ago
parent 0a28d47e7e
commit c476e6d660
  1. 6
      src/api/base.js
  2. 5
      vue.config.js

@ -0,0 +1,6 @@
import request from '@/util/axios'
export const queryWeath = () => request({
url: '/weather/v1/?district_id=371122&data_type=all&ak=GUGV9zeuAOeD4MrCwd1MeMkcae15vQ1e',
method: 'get',
});

@ -24,6 +24,11 @@ module.exports = defineConfig({
'^/gatewayapi': ''
}
},
'/weather': {
target: 'https://api.map.baidu.com',
changeOrigin: true,
ws: true,
},
}
}
});

Loading…
Cancel
Save