|  |  |  | @ -1,7 +1,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  | /* | 
			
		
	
		
			
				
					|  |  |  |  |  * @Description: 学员学习 | 
			
		
	
		
			
				
					|  |  |  |  |  * @Author: tangjiang | 
			
		
	
		
			
				
					|  |  |  |  |  * @Github:  | 
			
		
	
		
			
				
					|  |  |  |  |  * @Github: | 
			
		
	
		
			
				
					|  |  |  |  |  * @Date: 2019-11-23 10:53:19 | 
			
		
	
		
			
				
					|  |  |  |  |  * @LastEditors  : tangjiang | 
			
		
	
		
			
				
					|  |  |  |  |  * @LastEditTime : 2020-02-10 18:24:01 | 
			
		
	
	
		
			
				
					|  |  |  | @ -37,7 +37,7 @@ function StudentStudy (props) { | 
			
		
	
		
			
				
					|  |  |  |  |   } = props; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   const { | 
			
		
	
		
			
				
					|  |  |  |  |     match: { params },  | 
			
		
	
		
			
				
					|  |  |  |  |     match: { params }, | 
			
		
	
		
			
				
					|  |  |  |  |     getUserProgramDetail, | 
			
		
	
		
			
				
					|  |  |  |  |     saveUserProgramIdentifier | 
			
		
	
		
			
				
					|  |  |  |  |   } = props; | 
			
		
	
	
		
			
				
					|  |  |  | @ -48,7 +48,18 @@ function StudentStudy (props) { | 
			
		
	
		
			
				
					|  |  |  |  |     // 保存当前的id
 | 
			
		
	
		
			
				
					|  |  |  |  |     saveUserProgramIdentifier(id); | 
			
		
	
		
			
				
					|  |  |  |  |     // startProgramQuestion(id);
 | 
			
		
	
		
			
				
					|  |  |  |  |     getUserProgramDetail(id); | 
			
		
	
		
			
				
					|  |  |  |  | 		// console.log("getUserProgramDetail(id)");
 | 
			
		
	
		
			
				
					|  |  |  |  | 		// console.log(id);
 | 
			
		
	
		
			
				
					|  |  |  |  | 		// console.log(id.charAt(id.length-1));
 | 
			
		
	
		
			
				
					|  |  |  |  | 		try { | 
			
		
	
		
			
				
					|  |  |  |  | 			if(id.charAt(id.length-1)==="?"){ | 
			
		
	
		
			
				
					|  |  |  |  | 				id = id.substring(0, id.length - 1); | 
			
		
	
		
			
				
					|  |  |  |  | 			} | 
			
		
	
		
			
				
					|  |  |  |  | 		}catch (e) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		getUserProgramDetail(id); | 
			
		
	
		
			
				
					|  |  |  |  |     const $searchs = window.location.search && window.location.search.substring(1); | 
			
		
	
		
			
				
					|  |  |  |  |     if ($searchs) { | 
			
		
	
		
			
				
					|  |  |  |  |       const $params = $searchs.split('&') || []; | 
			
		
	
	
		
			
				
					|  |  |  | @ -110,7 +121,7 @@ function StudentStudy (props) { | 
			
		
	
		
			
				
					|  |  |  |  |     props.clearOjForUserReducer(); | 
			
		
	
		
			
				
					|  |  |  |  |     props.history.push(`/problems/${identifier}/edit?{searchParams}`); | 
			
		
	
		
			
				
					|  |  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  |  |   // 处理退出 
 | 
			
		
	
		
			
				
					|  |  |  |  |   // 处理退出
 | 
			
		
	
		
			
				
					|  |  |  |  |   const handleClickQuit = () => { | 
			
		
	
		
			
				
					|  |  |  |  |     // 退出时,清空内容
 | 
			
		
	
		
			
				
					|  |  |  |  |     props.clearOjForUserReducer(); | 
			
		
	
	
		
			
				
					|  |  |  | @ -136,9 +147,9 @@ function StudentStudy (props) { | 
			
		
	
		
			
				
					|  |  |  |  |         </div> | 
			
		
	
		
			
				
					|  |  |  |  |         <div className={'study_quit'}> | 
			
		
	
		
			
				
					|  |  |  |  |           {/* to={`/problems/${_hack_id}/edit`} */} | 
			
		
	
		
			
				
					|  |  |  |  |           <span  | 
			
		
	
		
			
				
					|  |  |  |  |           <span | 
			
		
	
		
			
				
					|  |  |  |  |             style={{ display: userInfo.hack_manager ? 'inline-block' : 'none' }} | 
			
		
	
		
			
				
					|  |  |  |  |             onClick={() => handleClickEditor(hack.identifier)}  | 
			
		
	
		
			
				
					|  |  |  |  |             onClick={() => handleClickEditor(hack.identifier)} | 
			
		
	
		
			
				
					|  |  |  |  |             className={`quit-btn`} | 
			
		
	
		
			
				
					|  |  |  |  |           > | 
			
		
	
		
			
				
					|  |  |  |  |             <Icon type="form" className="quit-icon"/> 编辑 | 
			
		
	
	
		
			
				
					|  |  |  | @ -161,7 +172,7 @@ function StudentStudy (props) { | 
			
		
	
		
			
				
					|  |  |  |  |             <LeftPane /> | 
			
		
	
		
			
				
					|  |  |  |  |           </div> | 
			
		
	
		
			
				
					|  |  |  |  |           <SplitPane split="vertical" defaultSize="100%" allowResize={false}> | 
			
		
	
		
			
				
					|  |  |  |  |             <RightPane  | 
			
		
	
		
			
				
					|  |  |  |  |             <RightPane | 
			
		
	
		
			
				
					|  |  |  |  |               updateNotice={handleUpdateNotice} | 
			
		
	
		
			
				
					|  |  |  |  |             /> | 
			
		
	
		
			
				
					|  |  |  |  |             <div /> | 
			
		
	
	
		
			
				
					|  |  |  | @ -182,7 +193,7 @@ const mapStateToProps = (state) => { | 
			
		
	
		
			
				
					|  |  |  |  |     user_program_identifier, | 
			
		
	
		
			
				
					|  |  |  |  |     hack_identifier, | 
			
		
	
		
			
				
					|  |  |  |  |     searchParams | 
			
		
	
		
			
				
					|  |  |  |  |   };  | 
			
		
	
		
			
				
					|  |  |  |  |   }; | 
			
		
	
		
			
				
					|  |  |  |  | }; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | const mapDispatchToProps = (dispatch) => ({ | 
			
		
	
	
		
			
				
					|  |  |  | 
 |