20 lines
325 B
Vue
20 lines
325 B
Vue
|
|
<template>
|
||
|
|
<a-config-provider>
|
||
|
|
<a-app>
|
||
|
|
<router-view />
|
||
|
|
</a-app>
|
||
|
|
</a-config-provider>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script setup lang="ts">
|
||
|
|
import { onMounted } from "vue";
|
||
|
|
|
||
|
|
import { useAuthStore } from "@/stores/auth";
|
||
|
|
|
||
|
|
const auth = useAuthStore();
|
||
|
|
|
||
|
|
onMounted(() => {
|
||
|
|
if (!auth.initialized) auth.hydrate();
|
||
|
|
});
|
||
|
|
</script>
|