<script setup>
  import { onBeforeUnmount } from 'vue'
  import { resetLocalServiceCheck } from './utils/request'
  // 在页面关闭前重置本地服务检查
  onBeforeUnmount(() => {
    resetLocalServiceCheck()
  })
</script>

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

<style lang="scss">
  .van-toast--text {
    background: rgba(0, 0, 0, 0.7) !important;
  }
  .loading-toast {
    background: rgba(0, 0, 0, 0.7) !important;
  }
  .confirm-dialog {
    .van-dialog__message {
      font-size: 18px;
    }
  }

  .animate__animated.animate__fadeInRight,
  .animate__animated.animate__fadeOutRight {
    --animate-duration: 500ms;
  }

  .top-icon {
    width: 24px;
    height: 24px;
  }

  .content-icon {
    width: 16px;
    height: 16px;
  }
</style>
