|  | @@ -79,21 +79,17 @@ export default {
 | 
	
		
			
				|  |  |  						var is = false;
 | 
	
		
			
				|  |  |  						if (res.data.code == 1) {
 | 
	
		
			
				|  |  |  							var { token, user } = res.data.data;
 | 
	
		
			
				|  |  | -							if(user.is_offical == 1){
 | 
	
		
			
				|  |  | +							// user.employee_detail.role_list.forEach(item => {
 | 
	
		
			
				|  |  | +							// 	if (user.is_official == 1) {
 | 
	
		
			
				|  |  | +							// 		if (item.name == 'admin' || item.name == 'creator' || item.name == 'point_manager') {is = true;}
 | 
	
		
			
				|  |  | +							// 	}
 | 
	
		
			
				|  |  | +							// });
 | 
	
		
			
				|  |  | +							if (user.is_official==1) {
 | 
	
		
			
				|  |  |  								that.$setUserData(user);
 | 
	
		
			
				|  |  |  								that.$router.replace({ path: '/index' });
 | 
	
		
			
				|  |  |  							}else{
 | 
	
		
			
				|  |  |  								that.$router.replace({ path: '/noAccess' });
 | 
	
		
			
				|  |  |  							}
 | 
	
		
			
				|  |  | -							// user.employee_detail.role_list.forEach(item => {
 | 
	
		
			
				|  |  | -							// 	// if (user.is_official == 1) {
 | 
	
		
			
				|  |  | -							// 		if (item.name == 'admin' || item.name == 'creator' || item.name == 'point_manager') {is = true;}
 | 
	
		
			
				|  |  | -							// 	// }
 | 
	
		
			
				|  |  | -							// });
 | 
	
		
			
				|  |  | -							// if (is) {
 | 
	
		
			
				|  |  | -							// } else {
 | 
	
		
			
				|  |  | -							// 	that.$router.replace({ path: '/noAccess' });
 | 
	
		
			
				|  |  | -							// }
 | 
	
		
			
				|  |  |  						}else if(res.data.code==2001){
 | 
	
		
			
				|  |  |  							this.dialogFormVisible=true;
 | 
	
		
			
				|  |  |  						}
 |