diff --git a/src/stores/useWeatherStore.js b/src/stores/useWeatherStore.js index 15e9fbe..e737c56 100644 --- a/src/stores/useWeatherStore.js +++ b/src/stores/useWeatherStore.js @@ -75,7 +75,7 @@ export const useWeatherStore = defineStore('weather', () => { const getWeatherInfoWithCache = async () => { const now = new Date(); const pad = n => String(n).padStart(2, '0'); - const key = `weather_${pad(now.getMonth() + 1)}${pad(now.getDate())}${pad(now.getHours())}${Math.floor(now.getMinutes() / 10) * 10}`; + const key = `weather_${pad(now.getMonth() + 1)}${pad(now.getDate())}${pad(now.getHours())}${pad(Math.floor(now.getMinutes() / 10) * 10)}`; const cached = localStorage.getItem(key); if (cached) {