This commit is contained in:
		
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -72,7 +72,7 @@ | ||||
|  | ||||
| <script> | ||||
| import "../assets/style/main.css"; | ||||
| import { API_URL } from "../config"; | ||||
| import { API_URL, WEATHER_URL } from "../config"; | ||||
|  | ||||
| import axios from "axios"; | ||||
| import clearIcon from "@/icons/clear-day.svg"; | ||||
| @@ -189,12 +189,9 @@ export default { | ||||
|     async fetchWeatherData() { | ||||
|       console.log("Fetching weather data..."); | ||||
|       const now = new Date(); | ||||
|       const response = await axios.post( | ||||
|         "https://weather.wn.krbl.ru/v1/weather", | ||||
|         { | ||||
|           coordinates: { latitude: 59.938784, longitude: 30.314997 }, | ||||
|         } | ||||
|       ); | ||||
|       const response = await axios.post(`${WEATHER_URL}/v1/weather`, { | ||||
|         coordinates: { latitude: 59.938784, longitude: 30.314997 }, | ||||
|       }); | ||||
|       this.currentWeather = { | ||||
|         ...response.data.currentWeather, | ||||
|         temperatureCelsius: Math.round( | ||||
|   | ||||
| @@ -1,2 +1,3 @@ | ||||
| export const API_URL = process.env.VUE_APP_API_URL; | ||||
| export const GEO_URL = process.env.VUE_APP_GEO_URL; | ||||
| export const WEATHER_URL = process.env.VUE_APP_WEATHER_URL; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user