From f3e4a728bca47d424fb3f9f0e2ef438cec58a2e3 Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Thu, 31 Mar 2022 13:36:20 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/school-web
---
src/components/error-page/404.vue | 32 ++++++++++++++++++--------------
1 files changed, 18 insertions(+), 14 deletions(-)
diff --git a/src/components/error-page/404.vue b/src/components/error-page/404.vue
index b69e54e..1081499 100644
--- a/src/components/error-page/404.vue
+++ b/src/components/error-page/404.vue
@@ -1,24 +1,28 @@
<template>
- <div class="error-page">
- <div class="img"
- style=" background-image: url('/img/bg/404.svg');"></div>
- <div class="content">
- <h1>404</h1>
- <div class="desc">抱歉,你访问的页面不存在</div>
- <div class="actions">
- <router-link :to="{path:'/'}">
- <el-button type="primary">返回首页</el-button>
- </router-link>
- </div>
+ <div class="error-page">
+ <div class="img" style=" background-image: url('/img/bg/404.svg');"></div>
+ <div class="content">
+ <h1>404</h1>
+ <div class="desc">抱歉,你访问的页面不存在</div>
+ <div class="actions">
+ <el-button @click="goHome" type="primary">返回首页</el-button>
+ </div>
+ </div>
</div>
- </div>
</template>
<script>
export default {
- name: 'error-404'
+ name: 'error-404',
+ inject: ['reload'],
+ methods: {
+ goHome () {
+ this.$router.push({ path: '/pcLayout/default' })
+ this.reload()
+ }
+ }
}
</script>
<style lang="scss" scoped>
-@import "./style.scss";
+@import './style.scss';
</style>
--
Gitblit v1.9.3