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