1
mayisheng
2022-08-15 81f54040c2cb65537c6c6e1db8358a39a57dea0d
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
26
27
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">
                <el-button @click="goHome" type="primary">返回首页</el-button>
            </div>
        </div>
    </div>
</template>
 
<script>
export default {
    name: 'error-404',
    inject: ['reload'],
    methods: {
        goHome () {
            this.$router.push({ path: '/pcLayout/default' })
            this.reload()
        }
    }
}
</script>
<style lang="scss" scoped>
@import './style.scss';
</style>