dengrui hace 10 meses
padre
commit
23bae50190
Se han modificado 1 ficheros con 24 adiciones y 41 borrados
  1. 24 41
      src/views/error-page/404.vue

+ 24 - 41
src/views/error-page/404.vue

@@ -6,50 +6,33 @@ export default {
 </script>
 
 <script setup lang="ts">
-function message() {
-  return "The webmaster said that you can not enter this page...";
-}
+const router = useRouter();
+const fanhui = () => {
+  router.go(-1);
+};
 </script>
 
 <template>
-  <div class="wscn-http404-container">
-    <div class="wscn-http404">
-      <div class="pic-404">
-        <img class="pic-404__parent" src="@/assets/images/404.png" alt="404" />
-        <img
-          class="pic-404__child left"
-          src="@/assets/images/404_cloud.png"
-          alt="404"
-        />
-        <img
-          class="pic-404__child mid"
-          src="@/assets/images/404_cloud.png"
-          alt="404"
-        />
-        <img
-          class="pic-404__child right"
-          src="@/assets/images/404_cloud.png"
-          alt="404"
-        />
-      </div>
-      <div class="bullshit">
-        <div class="bullshit__oops">OOPS!</div>
-        <div class="bullshit__info">
-          All rights reserved
-          <a
-            style="color: #20a0ff"
-            href="https://wallstreetcn.com"
-            target="_blank"
-            >wallstreetcn</a
-          >
-        </div>
-        <div class="bullshit__headline">{{ message() }}</div>
-        <div class="bullshit__info">
-          Please check that the URL you entered is correct, or click the button
-          below to return to the homepage.
-        </div>
-        <a href="" class="bullshit__return-home">Back to home</a>
-      </div>
+  <div>
+    <div style="height: 80vh">
+      <img style="height: 80vh" src="@/assets/images/404.png" alt="" />
+    </div>
+    <div
+      class="titleText"
+      style="margin-top: 20px; display: flex; justify-content: center"
+    >
+      当前页面不存在~
+    </div>
+    <div style="margin-top: 20px; display: flex; justify-content: center">
+      <router-link to="/login">
+        <el-button style="font-size: 20px; color: black" link>
+          跳转登录页</el-button
+        >
+      </router-link>
+
+      <el-button @click="fanhui" style="font-size: 20px; color: black" link>
+        返回上一级</el-button
+      >
     </div>
   </div>
 </template>