16 lines
459 B
Vue
Raw Normal View History

<template>
<router-view />
</template>
<script setup lang="ts">
import { useBackgroundStore } from '@/stores';
import { useRouter, useRoute } from 'vue-router';
import axios from 'axios';
const backgroundStore = useBackgroundStore();
import { onMounted } from 'vue';
import { onBeforeMount } from 'vue';
const router = useRouter();
onBeforeMount(async () => {
router.addRoute({ path: '/', component: () => import('@/views/MainPage.vue') });
});
</script>