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

<script setup lang="ts">
import { useStore } from '@/store/index'
const { setAsyncRoutesMark } = useStore()
window.addEventListener('beforeunload', () => beforeunloadFn())
const beforeunloadFn = (() => {
  setAsyncRoutesMark(false)
})
</script>

<style>
html,
body,
#app,
.layouts {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
</style>
