daidaibg
2022-10-10 a44105de2e57b676280f175237e3f2e2c017db6a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<script setup lang="ts">
const router = useRouter();
const errorCode = ref<number>(404);
const back = () => {
  router.push({ name: "Home" });
};
</script>
 
<template>
  <div class="flex flex-col items-center gap-20 bg-base-100 py-20">
    <div class="card w-96 bg-base-100">
      <div class="card-body">
        <h2 class="card-title">
          Error {{ errorCode }}!
        </h2>
        <p>We're sorry, something is not right, page not found!</p>
        <div class="card-actions justify-end">
          <button class="btn-primary btn" @click="back">
            Back !
          </button>
        </div>
      </div>
    </div>
  </div>
</template>