|  |  | @ -18,9 +18,9 @@ const Sider = (props) => { | 
			
		
	
		
			
				
					|  |  |  |         let nextItems = leftItems | 
			
		
	
		
			
				
					|  |  |  |         setItems(nextItems) | 
			
		
	
		
			
				
					|  |  |  |         scrollbar = new PerfectScrollbar('#page-slider', { suppressScrollX: true }); | 
			
		
	
		
			
				
					|  |  |  |         if (pathname == '/') { | 
			
		
	
		
			
				
					|  |  |  |             dispatch(push(homePath)) | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |       //   if (pathname == '/') { | 
			
		
	
		
			
				
					|  |  |  |       //       dispatch(push(homePath)) | 
			
		
	
		
			
				
					|  |  |  |       //   } | 
			
		
	
		
			
				
					|  |  |  |     }, [leftItems]) | 
			
		
	
		
			
				
					|  |  |  |     let routeSelectedKey = useLocation().pathname.split('/'); | 
			
		
	
		
			
				
					|  |  |  |     // let routeSelectedKey = [useLocation().pathname.split('/')[1]]//没有子目录的 | 
			
		
	
	
		
			
				
					|  |  | 
 |