File tree 7 files changed +94
-90
lines changed 7 files changed +94
-90
lines changed Original file line number Diff line number Diff line change 1
- <template >
2
- <div class =" exception" >
3
- <div class =" img" >
4
- <img :src =" config[type].img" />
5
- </div >
6
- <div class =" content" >
7
- <h1 >{{ config[type].title }}</h1 >
8
- <div class =" desc" >{{ config[type].desc }}</div >
9
- <div class =" action" >
10
- <a-button type =" primary" @click =" handleToHome" >返回首页</a-button >
11
- </div >
12
- </div >
13
- </div >
14
- </template >
15
-
16
- <script >
17
- import types from ' ./type'
18
-
19
- export default {
20
- name: ' Exception' ,
21
- props: {
22
- type: {
23
- type: String ,
24
- default: ' 404'
25
- }
26
- },
27
- data () {
28
- return {
29
- config: types
30
- }
31
- },
32
- methods: {
33
- handleToHome () {
34
- this .$router .push ({ name: ' dashboard' })
35
- }
36
- }
37
- }
38
- </script >
39
-
40
- <style lang="less" scoped>
41
- .exception {
42
- min-height : 500px ;
43
- height : 80% ;
44
- align-items : center ;
45
- text-align : center ;
46
- margin-top : 150px ;
47
- .img {
48
- display : inline-block ;
49
- padding-right : 52px ;
50
- zoom : 1 ;
51
- img {
52
- height : 360px ;
53
- max-width : 430px ;
54
- }
55
- }
56
- .content {
57
- display : inline-block ;
58
- flex : auto ;
59
- h1 {
60
- color : #434e59 ;
61
- font-size : 72px ;
62
- font-weight : 600 ;
63
- line-height : 72px ;
64
- margin-bottom : 24px ;
65
- }
66
- .desc {
67
- color : rgba (0 , 0 , 0 , .45 );
68
- font-size : 20px ;
69
- line-height : 28px ;
70
- margin-bottom : 16px ;
71
- }
72
- }
73
- }
74
-
75
- .mobile {
76
- .exception {
77
- margin-top : 30px ;
78
- .img {
79
- padding-right : unset ;
80
-
81
- img {
82
- height : 40% ;
83
- max-width : 80% ;
84
- }
85
- }
86
- }
87
- }
1
+ <template >
2
+ <div class =" exception" >
3
+ <div class =" img" >
4
+ <img :src =" config[type].img" />
5
+ </div >
6
+ <div class =" content" >
7
+ <h1 >{{ config[type].title }}</h1 >
8
+ <div class =" desc" >{{ config[type].desc }}</div >
9
+ <div class =" action" >
10
+ <a-button type =" primary" @click =" handleToHome" >返回首页</a-button >
11
+ </div >
12
+ </div >
13
+ </div >
14
+ </template >
15
+
16
+ <script >
17
+ import types from ' ./type'
18
+
19
+ export default {
20
+ name: ' Exception' ,
21
+ props: {
22
+ type: {
23
+ type: String ,
24
+ default: ' 404'
25
+ }
26
+ },
27
+ data () {
28
+ return {
29
+ config: types
30
+ }
31
+ },
32
+ methods: {
33
+ handleToHome () {
34
+ this .$router .push ({ name: ' dashboard' })
35
+ }
36
+ }
37
+ }
38
+ </script >
39
+
40
+ <style lang="less" scoped>
41
+ .exception {
42
+ min-height : 500px ;
43
+ height : 80% ;
44
+ align-items : center ;
45
+ text-align : center ;
46
+ margin-top : 150px ;
47
+ .img {
48
+ display : inline-block ;
49
+ padding-right : 52px ;
50
+ zoom : 1 ;
51
+ img {
52
+ height : 360px ;
53
+ max-width : 430px ;
54
+ }
55
+ }
56
+ .content {
57
+ display : inline-block ;
58
+ flex : auto ;
59
+ h1 {
60
+ color : #434e59 ;
61
+ font-size : 72px ;
62
+ font-weight : 600 ;
63
+ line-height : 72px ;
64
+ margin-bottom : 24px ;
65
+ }
66
+ .desc {
67
+ color : rgba (0 , 0 , 0 , .45 );
68
+ font-size : 20px ;
69
+ line-height : 28px ;
70
+ margin-bottom : 16px ;
71
+ }
72
+ }
73
+ }
74
+
75
+ .mobile {
76
+ .exception {
77
+ margin-top : 30px ;
78
+ .img {
79
+ padding-right : unset ;
80
+
81
+ img {
82
+ height : 40% ;
83
+ max-width : 80% ;
84
+ }
85
+ }
86
+ }
87
+ }
88
88
</style >
Original file line number Diff line number Diff line change
1
+ import ExceptionPage from './ExceptionPage.vue'
2
+ export default ExceptionPage
File renamed without changes.
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import STable from '@/components/Table'
22
22
import MultiTab from '@/components/MultiTab'
23
23
import Result from '@/components/Result'
24
24
import IconSelector from '@/components/IconSelector'
25
+ import ExceptionPage from '@/components/Exception'
25
26
26
27
export {
27
28
AvatarList ,
@@ -46,5 +47,6 @@ export {
46
47
STable ,
47
48
MultiTab ,
48
49
Result ,
50
+ ExceptionPage ,
49
51
IconSelector
50
52
}
Original file line number Diff line number Diff line change 3
3
</template >
4
4
5
5
<script >
6
- import ExceptionPage from ' ./ExceptionPage '
6
+ import { ExceptionPage } from ' @/components '
7
7
8
8
export default {
9
9
components: {
Original file line number Diff line number Diff line change 3
3
</template >
4
4
5
5
<script >
6
- import ExceptionPage from ' ./ExceptionPage '
6
+ import { ExceptionPage } from ' @/components '
7
7
8
8
export default {
9
9
components: {
Original file line number Diff line number Diff line change 3
3
</template >
4
4
5
5
<script >
6
- import ExceptionPage from ' ./ExceptionPage '
6
+ import { ExceptionPage } from ' @/components '
7
7
8
8
export default {
9
9
components: {
You can’t perform that action at this time.
0 commit comments