feat: 增加控制sub-menus菜单是否显示的方法
This commit is contained in:
		
							parent
							
								
									de0d06cc6b
								
							
						
					
					
						commit
						33cd3ff58d
					
				|  | @ -90,7 +90,9 @@ | |||
| 
 | ||||
|       // 当前页面子路由 | ||||
|       currentChildrenMenus () { | ||||
|         return this.findSubMenus(this.$route.name) | ||||
|         const hasSubmenuPathList = ['/isystem', '/system'] // 需要显示二级菜单的路由列表(仅需一级菜单路由) | ||||
|         const hasSubMenu = hasSubmenuPathList.some(item => this.$route.path.indexOf(item) == 0) | ||||
|         return hasSubMenu? this.findSubMenus(this.$route.name): [] | ||||
|       } | ||||
|     }, | ||||
|     watch: { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 orgin
							orgin