Commit 01c80356 by wangshufen

fixed:修改登录链接

parent 7581b2b2
...@@ -5,5 +5,6 @@ ...@@ -5,5 +5,6 @@
"paths": { "paths": {
"@/*": ["src/*"] "@/*": ["src/*"]
} }
} },
"exclude": ["node_modules", ".vscode", "library", "local", "settings", "temp", "build"]
} }
...@@ -47,15 +47,15 @@ function checkToken(config) { ...@@ -47,15 +47,15 @@ function checkToken(config) {
localStorage.removeItem('token'); localStorage.removeItem('token');
// alert(' 失败'); // alert(' 失败');
console.log('token校验没通过 返回登录页'); console.log('token校验没通过 返回登录页');
// window.open('http://localhost:3000/#/login'); // window.open('http://localhost:3000/#/login', '_self');
window.open('http://localhost:3000/#/login', '_self'); window.open('http://69.235.144.91:3048/#/login', '_self');
} }
}) })
.catch((err) => { .catch((err) => {
localStorage.removeItem('token'); localStorage.removeItem('token');
// alert(' 服务器报错'); // alert(' 服务器报错');
console.log('token校验没通过 返回登录页'); console.log('token校验没通过 返回登录页');
window.open('http://localhost:3000/#/login', '_self'); window.open('http://69.235.144.91:3048/#/login', '_self');
console.log('err', err); console.log('err', err);
return false; return false;
}); });
...@@ -71,7 +71,7 @@ request.interceptors.request.use((config) => { ...@@ -71,7 +71,7 @@ request.interceptors.request.use((config) => {
checkToken(config); checkToken(config);
} else { } else {
console.log('token为空....'); console.log('token为空....');
window.open('http://localhost:3000/#/login'); window.open('http://69.235.144.91:3048/#/login', '_self');
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment