jn517618 2 years ago
parent e02007730a
commit ed53283ba9
  1. 2
      src/api/energySourcesProvince/energySourcesProvince.js
  2. 4
      vue.config.js

@ -30,7 +30,7 @@ export const getTotalCarbonEmissions = (query) => {
// //
export const getWeather = () => { export const getWeather = () => {
return request({ return request({
url: "/weather/v1", url: "/weathers/weather/v1",
method: "get", method: "get",
params: { params: {
district_id: 431024, district_id: 431024,

@ -48,13 +48,13 @@ module.exports = {
"^/xumumodel": "/xumumodel", "^/xumumodel": "/xumumodel",
}, },
}, },
'/weather': { '/weathers': {
target: 'https://api.map.baidu.com', target: 'https://api.map.baidu.com',
changeOrigin: true, changeOrigin: true,
ws: true, ws: true,
secure: false, secure: false,
pathRewrite: { pathRewrite: {
"^/weather": "/", "^/weathers": "/",
}, },
}, },
}, },

Loading…
Cancel
Save