| 
					
				 | 
			
			
				@@ -14,7 +14,7 @@ const { start, done } = useNProgress() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 let isRefresh = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const ENTERPRISE_PATH = '/recruit/enterprise' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// const TEACHER_PATH = '/recruit/teacher' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const TEACHER_PATH = '/recruit/teacher' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // 路由守卫 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 router.beforeEach(async (to, from, next) => { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -24,11 +24,18 @@ router.beforeEach(async (to, from, next) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     next() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   const isEnterprise = to.path.includes(ENTERPRISE_PATH) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if (!isEnterprise && to.path !== '/enterpriseVerification' && !hasRoute(to.path)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     next('/404') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  const isTeacherRoute = to.path.includes(TEACHER_PATH) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  const schoolInfo = localStorage.getItem('schoolInfo') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  if (isTeacherRoute && !schoolInfo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    next(`/login?redirect=${to.fullPath}`) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   const tokenIndex = isEnterprise ? 1 : 2 // 1:企业 2:个人 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   // 获取商城装修模版 
			 |