|  |  |  | @ -137,6 +137,9 @@ class TPIContextProvider extends Component { | 
			
		
	
		
			
				
					|  |  |  |  | 		this.costTimeInterval && window.clearInterval(this.costTimeInterval) | 
			
		
	
		
			
				
					|  |  |  |  | 	} | 
			
		
	
		
			
				
					|  |  |  |  | 	componentDidMount() { | 
			
		
	
		
			
				
					|  |  |  |  | 		window.$(window).unload( ()=>{ | 
			
		
	
		
			
				
					|  |  |  |  | 			console.log(12321) | 
			
		
	
		
			
				
					|  |  |  |  | 		}); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		// TODO 登录状态的判断?
 | 
			
		
	
		
			
				
					|  |  |  |  | 		// request
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -158,12 +161,24 @@ class TPIContextProvider extends Component { | 
			
		
	
		
			
				
					|  |  |  |  | 			} | 
			
		
	
		
			
				
					|  |  |  |  | 		}, 1000) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		// 页面离开时存下用户的任务耗时
 | 
			
		
	
		
			
				
					|  |  |  |  | 			// 页面离开时存下用户的任务耗时
 | 
			
		
	
		
			
				
					|  |  |  |  | 		window.$(window).bind('beforeunload', function (e) { | 
			
		
	
		
			
				
					|  |  |  |  | 			console.log(111111) | 
			
		
	
		
			
				
					|  |  |  |  | 			this._updateCostTime(); | 
			
		
	
		
			
				
					|  |  |  |  | 		}) 	 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		// // 页面离开时存下用户的任务耗时
 | 
			
		
	
		
			
				
					|  |  |  |  | 		// window.$(window).unload( ()=>{
 | 
			
		
	
		
			
				
					|  |  |  |  | 		// 	this._updateCostTime();
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		// });
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 		window.$(window).unload( ()=>{ | 
			
		
	
		
			
				
					|  |  |  |  |             this._updateCostTime(); | 
			
		
	
		
			
				
					|  |  |  |  | 		}); | 
			
		
	
		
			
				
					|  |  |  |  | 	} | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 	 | 
			
		
	
		
			
				
					|  |  |  |  | 	 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 	// force 评测通过后,异步执行该方法,强制同步costTime到服务端
 | 
			
		
	
		
			
				
					|  |  |  |  | 	_updateCostTime(async = false, force) { | 
			
		
	
		
			
				
					|  |  |  |  | 		const { game, loading } = this.state; | 
			
		
	
	
		
			
				
					|  |  |  | 
 |