<!--
 * @Author: LiZhiWei
 * @Date: 2026-01-09 15:47:55
 * @LastEditors: LiZhiWei
 * @LastEditTime: 2026-01-09 17:36:09
 * @Description: 
-->
<template>
  <div><NuxtWelcome></NuxtWelcome></div>
</template>

<script setup lang="ts">
  import { checkStatus } from '~/utils/fetch/checkStatus'

  const showSuccessMessage = () => {
    ElMessage.success('这是一条 Element Plus 的成功提示')
  }

  const triggerHttpError = () => {
    // 模拟 HTTP 401 错误
    checkStatus(401, '登录已过期，请重新登录')
  }

  const triggerServerError = () => {
    // 模拟 HTTP 500 错误
    checkStatus(500, '内部服务器错误')
  }
</script>
<style scoped lang="scss"></style>
