style:路由修改
Showing
2 changed files
with
3 additions
and
3 deletions
| ... | @@ -6,7 +6,7 @@ export default function filterAsyncRouter (routers) { | ... | @@ -6,7 +6,7 @@ export default function filterAsyncRouter (routers) { |
| 6 | } else { | 6 | } else { |
| 7 | item.children = filterAsyncRouter(item.children) | 7 | item.children = filterAsyncRouter(item.children) |
| 8 | } | 8 | } |
| 9 | item.path = JSON.parse(item.metadata).path | 9 | item.path = JSON.parse(item.metadata).path ? JSON.parse(item.metadata).path : '/' |
| 10 | if (!item.parentId) { | 10 | if (!item.parentId) { |
| 11 | item.component = Layout | 11 | item.component = Layout |
| 12 | } else { | 12 | } else { | ... | ... |
| ... | @@ -32,7 +32,7 @@ | ... | @@ -32,7 +32,7 @@ |
| 32 | </el-row> | 32 | </el-row> |
| 33 | <el-row :gutter="8" class="marginTop10"> | 33 | <el-row :gutter="8" class="marginTop10"> |
| 34 | <el-col :span="12"> | 34 | <el-col :span="12"> |
| 35 | <el-card shadow="hover" style="height:247px"> | 35 | <el-card shadow="hover" style="height:215px"> |
| 36 | <div slot="header" class="flexst"> | 36 | <div slot="header" class="flexst"> |
| 37 | <h5 class="title">待办事项</h5> | 37 | <h5 class="title">待办事项</h5> |
| 38 | <i class="el-icon-s-unfold pointer"></i> | 38 | <i class="el-icon-s-unfold pointer"></i> |
| ... | @@ -46,7 +46,7 @@ | ... | @@ -46,7 +46,7 @@ |
| 46 | </el-card> | 46 | </el-card> |
| 47 | </el-col> | 47 | </el-col> |
| 48 | <el-col :span="12"> | 48 | <el-col :span="12"> |
| 49 | <el-card shadow="hover" style="height:247px"> | 49 | <el-card shadow="hover" style="height:215px"> |
| 50 | <div slot="header" class="flexst"> | 50 | <div slot="header" class="flexst"> |
| 51 | <h5 class="title">政策法规</h5> | 51 | <h5 class="title">政策法规</h5> |
| 52 | <i class="el-icon-s-unfold pointer"></i> | 52 | <i class="el-icon-s-unfold pointer"></i> | ... | ... |
-
Please register or sign in to post a comment