Initial commit: AMS Frontend - Vue 3 + PrimeVue
This commit is contained in:
27
src/App.vue
Normal file
27
src/App.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<script setup lang="ts">
|
||||
import Toast from 'primevue/toast'
|
||||
import { useAuthStore } from './stores/auth'
|
||||
import { onMounted } from 'vue'
|
||||
import { initUpdateCheck } from './utils/appUpdate'
|
||||
|
||||
const authStore = useAuthStore()
|
||||
|
||||
onMounted(() => {
|
||||
authStore.loadFromStorage()
|
||||
// Auto-Update Check (nur in Capacitor/Android App)
|
||||
initUpdateCheck()
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Toast position="top-right" />
|
||||
<router-view />
|
||||
</template>
|
||||
|
||||
<style>
|
||||
html, body, #app {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-height: 100vh;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user