|
|
<template> |
|
|
<div id="app"> |
|
|
<router-view /> |
|
|
|
|
|
|
|
|
<ToastNotification ref="toastRef" /> |
|
|
<ConfirmDialog ref="confirmRef" /> |
|
|
</div> |
|
|
</template> |
|
|
|
|
|
<script setup> |
|
|
import { onMounted, ref } from 'vue' |
|
|
import { useAuthStore } from '@/stores/auth' |
|
|
import { useThemeStore } from '@/stores/theme' |
|
|
import ToastNotification from '@/components/common/ToastNotification.vue' |
|
|
import ConfirmDialog from '@/components/common/ConfirmDialog.vue' |
|
|
|
|
|
const authStore = useAuthStore() |
|
|
const themeStore = useThemeStore() |
|
|
const toastRef = ref() |
|
|
const confirmRef = ref() |
|
|
|
|
|
onMounted(() => { |
|
|
|
|
|
themeStore.initTheme() |
|
|
|
|
|
|
|
|
themeStore.watchSystemTheme() |
|
|
|
|
|
|
|
|
authStore.checkAuth() |
|
|
|
|
|
|
|
|
authStore.loadOemSettings() |
|
|
}) |
|
|
</script> |
|
|
|
|
|
<style scoped> |
|
|
#app { |
|
|
min-height: 100vh; |
|
|
} |
|
|
</style> |
|
|
|