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 = () => {
return request({
url: "/weather/v1",
url: "/weathers/weather/v1",
method: "get",
params: {
district_id: 431024,

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

Loading…
Cancel
Save