frontend
This commit is contained in:
24
frontend/src/App.vue
Normal file
24
frontend/src/App.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<template>
|
||||
|
||||
<RouterView />
|
||||
<Toast :queue="toastQueue" />
|
||||
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { onMounted, ref, provide } from 'vue';
|
||||
import Toast from './components/Toast.vue';
|
||||
|
||||
|
||||
const toastQueue = ref([]);
|
||||
|
||||
const setToast = (message, type = 'info', duration) => {
|
||||
toastQueue.value.push({ message, type, duration });
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
// authStore.checkLoginStatus();
|
||||
});
|
||||
|
||||
provide('toast', { setToast });
|
||||
</script>
|
||||
Reference in New Issue
Block a user