<script setup lang="ts">
import { GO_URLS } from "cqk-sy-ui";
import { onMounted } from "vue";
import { $ajax } from "./service";
import { setUrlList } from "./store/mutations";
import globalMount from "@/components/GlobalMount/index.vue";

onMounted(async () => {
  const res = await $ajax({
    type: "get",
    url: GO_URLS.config,
  });
  if (res) {
    setUrlList(res.data.frontend);
  }
});
</script>

<template>
  <router-view></router-view>
  <globalMount />
</template>
