404.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <div>
  3. <div class="app-container">
  4. <el-col :span="12">
  5. <img :src="img_404" alt="404" class="img-style">
  6. </el-col>
  7. <el-col :span="12">
  8. <div style="margin-left: 100px;margin-top: 60px">
  9. <h1 class="color-main">OOPS!</h1>
  10. <h2 style="color: #606266">很抱歉,页面它不小心迷路了!</h2>
  11. <div style="color:#909399;font-size: 14px">请检查您输入的网址是否正确,请点击以下按钮返回主页或者发送错误报告</div>
  12. <el-button style="margin-top: 20px" type="primary" round @click="handleGoMain">返回首页</el-button>
  13. </div>
  14. </el-col>
  15. </div>
  16. </div>
  17. </template>
  18. <script>
  19. import img_404 from '@/assets/images/gif_404.gif';
  20. export default {
  21. name: 'wrongPage',
  22. data() {
  23. return {
  24. img_404
  25. }
  26. },
  27. methods: {
  28. handleGoMain() {
  29. this.$router.push({path: '/'})
  30. }
  31. },
  32. }
  33. </script>
  34. <style scoped lang="scss">
  35. .app-container {
  36. width: 80%;
  37. margin: 120px auto;
  38. }
  39. .img-style {
  40. width: auto;
  41. height: auto;
  42. max-width: 100%;
  43. max-height: 100%;
  44. }
  45. </style>