1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <template>
- <div>
- <div class="page-img">
- <img src="../assets/404.png" />
- </div>
- <p class="page-container"><b>Error</b> 非常抱歉你访问的页面不存在!!!</p>
- <div class="page-button">
- <el-button type="primary" round @click="back" icon="el-icon-s-promotion">返回首页</el-button>
- </div>
- </div>
- </template>
- <script lang="ts" setup>
- import { useRouter } from "vue-router";
- import { useStore } from "@/store/index"
- const router = useRouter();
- const { clearStore } = useStore()
- function back() {
- clearStore();
- router.replace('/login');
- }
- </script>
- <style lang="scss" scoped>
- .page-img {
- text-align: center;
- display: flex;
- justify-content: center;
- padding: 100px 0 0 0;
- img {
- width: 600px;
- }
- }
- .page-container {
- font-size: 20px;
- text-align: center;
- color: rgb(192, 204, 218);
- b {
- margin-right: 30px;
- font-size: 26px;
- }
- }
- .page-button {
- text-align: center;
- margin-top: 40px;
- .el-button.is-round {
- width: 150px;
- margin-right: 80px;
- }
- }
- </style>
|