From 5e2aafeede13d337380f736567caf74f49713be7 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 09 Aug 2024 14:38:32 +0800
Subject: [PATCH] 代码优化
---
src/components/error-page/404.vue | 27 +++++++++++++--------------
1 files changed, 13 insertions(+), 14 deletions(-)
diff --git a/src/components/error-page/404.vue b/src/components/error-page/404.vue
index 7ba262e..fc4919e 100644
--- a/src/components/error-page/404.vue
+++ b/src/components/error-page/404.vue
@@ -1,23 +1,22 @@
<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">
+ <router-link :to="{ path: '/' }">
+ <el-button type="primary">返回首页</el-button>
+ </router-link>
+ </div>
+ </div>
</div>
- </div>
</template>
<script>
export default {
- name: "error-404"
-};
+ name: "error-404"
+}
</script>
<style lang="scss" scoped>
@import "./style.scss";
--
Gitblit v1.9.3