404.vue 460 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <div class="frame">
  3. <h1>页面找不到了</h1>
  4. <el-button @click="goIndex" type="success">返回首页</el-button>
  5. </div>
  6. </template>
  7. <script>
  8. export default {
  9. name: 'error',
  10. data() {
  11. return {
  12. }
  13. },
  14. created() {
  15. },
  16. methods: {
  17. // 回首页
  18. goIndex(){
  19. this.$router.replace({
  20. path: "/"
  21. });
  22. },
  23. }
  24. }
  25. </script>
  26. <style lang="scss" scoped>
  27. @import "@assets/css/404.scss";
  28. </style>