<script setup lang="ts">
// import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
// import { ElMessage } from 'element-plus';
import { showFailToast } from 'vant';
import { UserRole } from '~/store/user';

if (UserRole === 'other') {
  showFailToast('非法用户')
}

</script>

<template>
  <van-config-provider :z-index="100">
    <suspense>
      <div class="w-screen h-screen flex flex-col justify-center items-center overflow-y-auto">
        <router-view></router-view>
      </div>

      <template #fallback>
        <div class="w-screen h-screen flex justify-center items-center" >
          <van-loading />
        </div>
      </template>
    </suspense>
  </van-config-provider>
</template>

<style>
body {
  margin: 0;
  padding: 0;
}
</style>

