mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-30 09:48:43 +08:00 
			
		
		
		
	b4bdd4f:开启TopNav没有子菜单隐藏侧边栏
This commit is contained in:
		| @@ -133,8 +133,10 @@ export default { | |||||||
|       } else { |       } else { | ||||||
|         // 显示左侧联动菜单 |         // 显示左侧联动菜单 | ||||||
|         this.activeRoutes(key); |         this.activeRoutes(key); | ||||||
|  |         if (!this.$route.meta.link) { | ||||||
|           this.$store.dispatch('app/toggleSideBarHide', false); |           this.$store.dispatch('app/toggleSideBarHide', false); | ||||||
|         } |         } | ||||||
|  |       } | ||||||
|     }, |     }, | ||||||
|     // 当前激活的路由 |     // 当前激活的路由 | ||||||
|     activeRoutes(key) { |     activeRoutes(key) { | ||||||
| @@ -149,7 +151,7 @@ export default { | |||||||
|       if(routes.length > 0) { |       if(routes.length > 0) { | ||||||
|         this.$store.commit("SET_SIDEBAR_ROUTERS", routes); |         this.$store.commit("SET_SIDEBAR_ROUTERS", routes); | ||||||
|       } else { |       } else { | ||||||
|         this.$store.dispatch("app/toggleSideBarHide", true); |         this.$store.dispatch('app/toggleSideBarHide', true); | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     ishttp(url) { |     ishttp(url) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV