<template>
  <a-config-provider update-at-scroll>
    <router-view></router-view>
    <template #loading>
      <img src="/static/images/loading.gif" class="loading-icon" alt="loading" />
    </template>
  </a-config-provider>
</template>

<script setup lang="ts">
import { useAppStore } from '@/stores'

defineOptions({ name: 'App' })

const appStore = useAppStore()
appStore.initTheme()
</script>

<style lang="scss" scoped>
.loading-icon {
  width: 30px;
}
</style>
