This commit is contained in:
Sakurasan
2025-04-16 18:14:53 +08:00
parent ffb4496fd8
commit 15f17f4e8d
55 changed files with 7654 additions and 0 deletions

24
frontend/src/App.vue Normal file
View 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>