33 lines
646 B
Vue
33 lines
646 B
Vue
<template>
|
||
<div class="mycontainer">
|
||
<el-result
|
||
icon="warning"
|
||
title="404,请求资源不存在"
|
||
sub-title="抱歉!未找到页面"
|
||
>
|
||
<template #extra>
|
||
<el-button type="primary" @click="toHomePage">返回首页</el-button>
|
||
</template>
|
||
</el-result>
|
||
</div>
|
||
</template>
|
||
|
||
<script setup>
|
||
import { useRouter } from "vue-router";
|
||
|
||
const router = useRouter();
|
||
|
||
const toHomePage = ()=>{
|
||
router.replace('/index')
|
||
}
|
||
|
||
</script>
|
||
|
||
<style lang="scss" scoped>
|
||
.mycontainer{
|
||
height: 100vh;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
</style> |