添加默认404页面
Showing
2 changed files
with
6 additions
and
3 deletions
| 1 | <template> | 1 | <template> |
| 2 | <div class="wscn-http404-container"> | 2 | <div> |
| 3 | <img src="./404.png" alt=""> | 3 | <img src="./404.png" alt=""> |
| 4 | </div> | 4 | </div> |
| 5 | </template> | 5 | </template> |
| ... | @@ -34,14 +34,14 @@ export default { | ... | @@ -34,14 +34,14 @@ export default { |
| 34 | 34 | ||
| 35 | .wscn-http404 { | 35 | .wscn-http404 { |
| 36 | position: relative; | 36 | position: relative; |
| 37 | width: 1200px; | 37 | width: 100%; |
| 38 | padding: 0 50px; | 38 | padding: 0 50px; |
| 39 | overflow: hidden; | 39 | overflow: hidden; |
| 40 | 40 | ||
| 41 | .pic-404 { | 41 | .pic-404 { |
| 42 | position: relative; | 42 | position: relative; |
| 43 | float: left; | 43 | float: left; |
| 44 | width: 600px; | 44 | width: 100%; |
| 45 | overflow: hidden; | 45 | overflow: hidden; |
| 46 | 46 | ||
| 47 | &__parent { | 47 | &__parent { | ... | ... |
| ... | @@ -53,6 +53,9 @@ export function getForm(tabName, djywbm) { | ... | @@ -53,6 +53,9 @@ export function getForm(tabName, djywbm) { |
| 53 | case "fzxx": | 53 | case "fzxx": |
| 54 | form = require("@/views/workflow/components/fzxx.vue"); | 54 | form = require("@/views/workflow/components/fzxx.vue"); |
| 55 | break; | 55 | break; |
| 56 | default: | ||
| 57 | form = require("@/views/error-page/404.vue"); | ||
| 58 | break; | ||
| 56 | } | 59 | } |
| 57 | return (r) => require.ensure([], () => r(form)); | 60 | return (r) => require.ensure([], () => r(form)); |
| 58 | } | 61 | } | ... | ... |
-
Please register or sign in to post a comment