<template>
  <el-row type="flex" justify="center">
    <el-col :sm="12" :lg="6">
      <el-result
        v-if="route.name === 'NotFound'"
        icon="error"
        title="没有找到页面"
      >
      </el-result>
      <el-result
        v-else-if="errorType === 'ended'"
        icon="error"
        title="会议已经结束"
      >
      </el-result>
      <el-result v-else icon="error" title="其他错误"> </el-result>
    </el-col>
  </el-row>
</template>
<script setup name="Error">
import { ref } from "vue";
import { useRoute } from "vue-router";
const route = useRoute();
const errorType = ref("");
errorType.value = route.query.errorType;
</script>
