소스 검색

auto commit

gcz 4 년 전
부모
커밋
43c62edd21
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      common/http.interceptor.js

+ 1 - 1
common/http.interceptor.js

@@ -49,7 +49,7 @@ const install = (Vue, vm) => {
 			return res;  
 		} else if(res.msg == "令牌不能为空"||res.code == 401){
 			alert('还未登录,即将跳转登录');			
-			setTimeout(()=>{location.href = location.href+'pages/center/phoneLogin/phoneLogin';});
+			setTimeout(()=>{location.href = location.origin+'pages/center/phoneLogin/phoneLogin';});
 		}else return false;
 	}
 }