diff --git a/fe/src/App.vue b/fe/src/App.vue index df9d0b5f..c94c35dd 100644 --- a/fe/src/App.vue +++ b/fe/src/App.vue @@ -2,13 +2,16 @@ import {RouterView, useRoute} from 'vue-router' import HomeHeader from '@/components/HomeHeader.vue' import HomeAside from '@/components/HomeAside.vue'; -import {ref, watch} from 'vue' +import {ref, watch, onMounted} from 'vue' +import {useGlobalStatusStore} from "@/stores/useGlobalStatusStore"; const route = useRoute() const pageName = ref(route.name) +const globalStatus = useGlobalStatusStore(); - - +onMounted(() => { + globalStatus.init(() => {}); +}); watch( () => route.fullPath, @@ -21,13 +24,27 @@ watch(