<script setup>
import {onMounted} from "vue";
import {useSystemStore} from "./pinia/SystemStore/index.js";
import {toPath} from "./utils/index.js";

const SystemStore = useSystemStore();

onMounted(() => {
    const isRoot = SystemStore.isRoot;
    SystemStore.clearRouter().then(() => {
        SystemStore.setRouter(isRoot).then(() => {
            toPath(SystemStore.NOW_ROUTER, SystemStore.NOW_ROUTER_QUERY);
        });
    });
});
</script>

<template>
    <a-config-provider>
        <router-view></router-view>
    </a-config-provider>
</template>

<style scoped></style>
