Browse Source

返回首页

CzRger 2 weeks ago
parent
commit
d0b48b246f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/views/global/temp/404.vue

+ 3 - 0
src/views/global/temp/404.vue

@@ -4,6 +4,9 @@
       <div class="error-code animate-float">404</div>
       <h1 class="title">页面迷路了...</h1>
       <p class="description">您寻找的页面可能已经去度假了</p>
+      <a-button type="primary" @click="$router.push({ name: 'root' })"
+        >返回首页</a-button
+      >
     </div>
   </div>
 </template>