<script setup>
import { onMounted, getCurrentInstance } from "vue";

const { proxy } = getCurrentInstance();

// 关闭大屏加载动画
(parent || window).postMessage("loading.hide", "*");
</script>

<template>
  <div>
    <Transition name="fade" mode="out-in">
      <router-view></router-view>
    </Transition>
  </div>
</template>

<style lang="scss" scoped>
.loading {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: #000;
  top: 0;
  left: 0;
  z-index: 9999;
}
</style>
