|
@@ -126,13 +126,12 @@ router.beforeEach((to,from,next) =>{
|
|
|
//window.document.title = to.meta.title;
|
|
|
// const urlParams = new URLSearchParams(to.fullPath);
|
|
|
// const aids = urlParams.get('aid');
|
|
|
-
|
|
|
let token = getToken2();
|
|
|
- console.log('守卫中Token:', token);
|
|
|
- if(to.fullPath.indexOf("aid")>0){
|
|
|
+ // console.log('守卫中Token:', token);
|
|
|
+ if( window.location.href.indexOf("aid")>0||(window.location.href.indexOf("uname")>0&&window.location.href.indexOf("token")>0)){
|
|
|
setToken('e47b87eec69545559d1e81e56626da68');
|
|
|
setUserId('5f06c8bc77234f969d13e160b54c27e3');
|
|
|
- console.log('守卫中aids:', to.fullPath);
|
|
|
+ console.log('守卫中aids:', window.location.href);
|
|
|
window.document.title = to.name;
|
|
|
next();
|
|
|
}else if (!token && to.name !== 'login') {
|