12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <template>
- <div class="errorPage">
- <div class="error">
- <img src="./imgs/404.png" class="img" alt="" />
- <div class="tit">页面找不到了~</div>
- <!-- <ElButton class="backBtn" type="primary" plain @click="handleGoHome">返回</ElButton> -->
- </div>
- </div>
- </template>
- <script setup lang="ts">
- import { useRouter } from "vue-router"
- import { ElButton } from "element-plus"
- const router = useRouter()
- function handleGoHome() {
- router.back()
- }
- </script>
- <style lang="scss" scoped>
- .errorPage {
- width: 100%;
- height: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- .error {
- background-color: #fff;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- margin-top: -100px;
- .img {
- width: 272px;
- height: 227px;
- }
- .tit {
- font-weight: 400;
- font-size: 16px;
- color: #999999;
- margin-top: 16px;
- margin-bottom: 20px;
- }
- .backBtn {
- width: 88px;
- height: 36px;
- }
- }
- }
- </style>
|