fix 左侧菜单底部空白项
This commit is contained in:
parent
42994f6eca
commit
86cc8122ce
@ -2,6 +2,7 @@
|
||||
<div>
|
||||
<template v-if="!item.children || (item.children && item.children.length === 0)">
|
||||
<el-menu-item
|
||||
v-if="!item.root"
|
||||
@click="goRoute(item.path || item.routePath)"
|
||||
:index="item.path || item.routePath"
|
||||
>
|
||||
|
@ -25,12 +25,12 @@ const constRoutes = [
|
||||
/**
|
||||
* home路由,需要修改redirect使用
|
||||
*/
|
||||
const homeRoute = { path: '/', hidden: true, redirect: '' };
|
||||
const homeRoute = { path: '/', root: true, redirect: '' };
|
||||
|
||||
/**
|
||||
* 404兜底路由
|
||||
*/
|
||||
const notFoundRoute = { path: '/:catchAll(.*)', redirect: '/404', hidden: true };
|
||||
const notFoundRoute = { path: '/:catchAll(.*)', redirect: '/404', root: true };
|
||||
|
||||
/**
|
||||
* 使用require加载组件,失败时弹出提示
|
||||
|
Loading…
x
Reference in New Issue
Block a user