Commit 81327c8b by chenyr

退出登录跳转路径

parent d97545be
......@@ -48,7 +48,8 @@ axios.interceptors.response.use(
const message = response.data.message;
console.log(response);
if (status == "202") {
router.push({path: "/login"});
//router.push({path: "/login"});
window.location.href = 'http://47.92.225.109:8300/login';
}
if (status < 0) {
Message({
......
......@@ -94,8 +94,8 @@ export default {
Cookies.remove('JSESSIONID')
loginOut({},).then((res) => {
console.log(res);
this.$router.push({path: "/login"});
//window.location.href = 'http://47.92.225.109:8300/login'
//this.$router.push({path: "/login"});
window.location.href = 'http://47.92.225.109:8300/login';
}).catch(err => {
console.log(err);
})
......
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