21 lines
471 B
Vue
21 lines
471 B
Vue
<script setup>
|
|
import { themeConfig } from '@/assets/theme'
|
|
import { useAgentStore } from '@/stores/agent'
|
|
import { useUserStore } from '@/stores/user'
|
|
import { onMounted } from 'vue'
|
|
|
|
const agentStore = useAgentStore();
|
|
const userStore = useUserStore();
|
|
|
|
onMounted(async () => {
|
|
if (userStore.isLoggedIn) {
|
|
await agentStore.initialize();
|
|
}
|
|
})
|
|
</script>
|
|
<template>
|
|
<a-config-provider :theme="themeConfig">
|
|
<router-view />
|
|
</a-config-provider>
|
|
</template>
|