fix: modify
							parent
							
								
									420aedf83e
								
							
						
					
					
						commit
						3cddb1372b
					
				| 
						 | 
				
			
			@ -14,6 +14,7 @@ if (token) {
 | 
			
		|||
export default function() {
 | 
			
		||||
  const whiteList = ['/login', '/404', '/401', '/license', '/sso']
 | 
			
		||||
  router.beforeEach(async (to, from, next) => {
 | 
			
		||||
    console.log(to)
 | 
			
		||||
    if (getToken()) {
 | 
			
		||||
      // 判断用户是否处于登录状态
 | 
			
		||||
      if (to.path === '/login') {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue