Browse Source

Merge branch 'gin-vue-admin_v2_dev' of https://github.com/flipped-aurora/gin-vue-admin into gin-vue-admin_v2_dev

main
jinlan.du 5 years ago
parent
commit
712ca07ad0
  1. 6
      web/src/router/index.js
  2. 11
      web/src/store/module/router.js
  3. 9
      web/src/view/dashboard/index.vue
  4. 3
      web/src/view/error/index.vue

6
web/src/router/index.js

@ -18,12 +18,6 @@ const baseRouters = [{
name: 'register', name: 'register',
component: () => component: () =>
import ('@/view/login/register.vue') import ('@/view/login/register.vue')
},
{
path: "/404",
name: "404",
component: () =>
import ('@/view/error/index.vue')
} }
] ]

11
web/src/store/module/router.js

@ -37,11 +37,20 @@ export const router = {
}] }]
const asyncRouterRes = await asyncMenu() const asyncRouterRes = await asyncMenu()
const asyncRouter = asyncRouterRes.data.menus const asyncRouter = asyncRouterRes.data.menus
asyncRouter.push({
path: "404",
name: "404",
hidden: true,
meta: {
title: "迷路了*。*",
},
component: 'view/error/index.vue'
})
formatRouter(asyncRouter) formatRouter(asyncRouter)
baseRouter[0].children = asyncRouter baseRouter[0].children = asyncRouter
baseRouter.push({ baseRouter.push({
path: '*', path: '*',
redirect: '/404'
redirect: '/layout/404'
}) })
asyncRouterHandle(baseRouter) asyncRouterHandle(baseRouter)

9
web/src/view/dashboard/index.vue

@ -172,7 +172,7 @@ export default {
padding-top: 0; padding-top: 0;
background-color: rgb(243,243,243);; background-color: rgb(243,243,243);;
.top{ .top{
width: 98%;
width: 100%;
height: 360px; height: 360px;
margin-top: 20px; margin-top: 20px;
overflow: hidden; overflow: hidden;
@ -185,7 +185,7 @@ export default {
} }
} }
.mid{ .mid{
width: 98%;
width: 100%;
height: 380px; height: 380px;
.chart-wrapper { .chart-wrapper {
height: 340px; height: 340px;
@ -195,9 +195,12 @@ export default {
} }
} }
.bottom{ .bottom{
width: 97%;
width: 100%;
height: 300px; height: 300px;
margin: 20px 0; margin: 20px 0;
.el-row{
margin-right: 4px !important;
}
.chart-player{ .chart-player{
width: 100%; width: 100%;
height: 270px; height: 270px;

3
web/src/view/error/index.vue

@ -4,6 +4,7 @@
<div class="inner"> <div class="inner">
<img src="../../assets/notFound.png"> <img src="../../assets/notFound.png">
<p>页面被神秘力量吸走了请联系我们修复</p> <p>页面被神秘力量吸走了请联系我们修复</p>
<p style="font-size:18px;line-height:40px;">常见问题为菜单未分配仪表盘可自行分配仪表盘或修改默认路由</p>
<p></p> <p></p>
<img src="../../assets/qm.png" class="leftPic"> <img src="../../assets/qm.png" class="leftPic">
</div> </div>
@ -21,7 +22,7 @@ export default {
<style lang="scss"> <style lang="scss">
.big{ .big{
width: 100%; width: 100%;
height: 100vh;
height: calc(100vh - 220px);
background-color: rgb(244,244,244); background-color: rgb(244,244,244);
position: relative; position: relative;
} }

Loading…
Cancel
Save