Skip to content

Commit 712ca07

Browse files
author
jinlan.du
committed
Merge branch 'gin-vue-admin_v2_dev' of https://github.com/flipped-aurora/gin-vue-admin into gin-vue-admin_v2_dev
2 parents 594e2e2 + f6d5314 commit 712ca07

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

web/src/router/index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ const baseRouters = [{
1818
name: 'register',
1919
component: () =>
2020
import ('@/view/login/register.vue')
21-
},
22-
{
23-
path: "/404",
24-
name: "404",
25-
component: () =>
26-
import ('@/view/error/index.vue')
2721
}
2822
]
2923

web/src/store/module/router.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,20 @@ export const router = {
3737
}]
3838
const asyncRouterRes = await asyncMenu()
3939
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+
})
4049
formatRouter(asyncRouter)
4150
baseRouter[0].children = asyncRouter
4251
baseRouter.push({
4352
path: '*',
44-
redirect: '/404'
53+
redirect: '/layout/404'
4554

4655
})
4756
asyncRouterHandle(baseRouter)

web/src/view/dashboard/index.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export default {
172172
padding-top: 0;
173173
background-color: rgb(243,243,243);;
174174
.top{
175-
width: 98%;
175+
width: 100%;
176176
height: 360px;
177177
margin-top: 20px;
178178
overflow: hidden;
@@ -185,7 +185,7 @@ export default {
185185
}
186186
}
187187
.mid{
188-
width: 98%;
188+
width: 100%;
189189
height: 380px;
190190
.chart-wrapper {
191191
height: 340px;
@@ -195,9 +195,12 @@ export default {
195195
}
196196
}
197197
.bottom{
198-
width: 97%;
198+
width: 100%;
199199
height: 300px;
200200
margin: 20px 0;
201+
.el-row{
202+
margin-right: 4px !important;
203+
}
201204
.chart-player{
202205
width: 100%;
203206
height: 270px;

web/src/view/error/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<div class="inner">
55
<img src="../../assets/notFound.png">
66
<p>页面被神秘力量吸走了,请联系我们修复</p>
7+
<p style="font-size:18px;line-height:40px;">常见问题为菜单未分配仪表盘,可自行分配仪表盘或修改默认路由</p>
78
<p>↓</p>
89
<img src="../../assets/qm.png" class="leftPic">
910
</div>
@@ -21,7 +22,7 @@ export default {
2122
<style lang="scss">
2223
.big{
2324
width: 100%;
24-
height: 100vh;
25+
height: calc(100vh - 220px);
2526
background-color: rgb(244,244,244);
2627
position: relative;
2728
}

0 commit comments

Comments
 (0)