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