Cleanup
This commit is contained in:
@@ -6,7 +6,7 @@ import Precipitation from '@/components/Precipitation.vue';
|
||||
import Seismic from '@/components/Seismic.vue';
|
||||
import Sun from '@/components/Sun.vue';
|
||||
import Wind from '@/components/Wind.vue';
|
||||
import {BASE} from '@/services/api.ts';
|
||||
import {BASE, useWeather} from '@/services/api.ts';
|
||||
import {formatDate} from '@ztimson/utils';
|
||||
import {onMounted, onUnmounted, provide, ref} from 'vue';
|
||||
import MapView from '../components/MapView.vue';
|
||||
@@ -23,6 +23,7 @@ let clock: ReturnType<typeof setInterval>;
|
||||
provide('openGraph', (key: string) => selectedMetric.value = key);
|
||||
|
||||
onMounted(async () => {
|
||||
useWeather();
|
||||
clock = setInterval(() => {
|
||||
day.value = formatDate('dddd');
|
||||
date.value = formatDate('MMMM D');
|
||||
|
||||
Reference in New Issue
Block a user