File tree Expand file tree Collapse file tree 4 files changed +18
-11
lines changed Expand file tree Collapse file tree 4 files changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,6 @@ const baseRouters = [{
18
18
name : 'register' ,
19
19
component : ( ) =>
20
20
import ( '@/view/login/register.vue' )
21
- } ,
22
- {
23
- path : "/404" ,
24
- name : "404" ,
25
- component : ( ) =>
26
- import ( '@/view/error/index.vue' )
27
21
}
28
22
]
29
23
Original file line number Diff line number Diff line change @@ -37,11 +37,20 @@ export const router = {
37
37
} ]
38
38
const asyncRouterRes = await asyncMenu ( )
39
39
const asyncRouter = asyncRouterRes . data . menus
40
+ asyncRouter . push ( {
41
+ path : "404" ,
42
+ name : "404" ,
43
+ hidden : true ,
44
+ meta : {
45
+ title : "迷路了*。*" ,
46
+ } ,
47
+ component : 'view/error/index.vue'
48
+ } )
40
49
formatRouter ( asyncRouter )
41
50
baseRouter [ 0 ] . children = asyncRouter
42
51
baseRouter . push ( {
43
52
path : '*' ,
44
- redirect : '/404'
53
+ redirect : '/layout/ 404'
45
54
46
55
} )
47
56
asyncRouterHandle ( baseRouter )
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ export default {
172
172
padding-top : 0 ;
173
173
background-color : rgb (243 ,243 ,243 );;
174
174
.top {
175
- width : 98 % ;
175
+ width : 100 % ;
176
176
height : 360px ;
177
177
margin-top : 20px ;
178
178
overflow : hidden ;
@@ -185,7 +185,7 @@ export default {
185
185
}
186
186
}
187
187
.mid {
188
- width : 98 % ;
188
+ width : 100 % ;
189
189
height : 380px ;
190
190
.chart-wrapper {
191
191
height : 340px ;
@@ -195,9 +195,12 @@ export default {
195
195
}
196
196
}
197
197
.bottom {
198
- width : 97 % ;
198
+ width : 100 % ;
199
199
height : 300px ;
200
200
margin : 20px 0 ;
201
+ .el-row {
202
+ margin-right : 4px !important ;
203
+ }
201
204
.chart-player {
202
205
width : 100% ;
203
206
height : 270px ;
Original file line number Diff line number Diff line change 4
4
<div class =" inner" >
5
5
<img src =" ../../assets/notFound.png" >
6
6
<p >页面被神秘力量吸走了,请联系我们修复</p >
7
+ <p style =" font-size :18px ;line-height :40px ;" >常见问题为菜单未分配仪表盘,可自行分配仪表盘或修改默认路由</p >
7
8
<p >↓</p >
8
9
<img src =" ../../assets/qm.png" class =" leftPic" >
9
10
</div >
@@ -21,7 +22,7 @@ export default {
21
22
<style lang="scss">
22
23
.big {
23
24
width : 100% ;
24
- height : 100vh ;
25
+ height : calc ( 100vh - 220 px ) ;
25
26
background-color : rgb (244 ,244 ,244 );
26
27
position : relative ;
27
28
}
You can’t perform that action at this time.
0 commit comments