|
|
@ -198,17 +198,20 @@ export default { |
|
|
|
this.$http |
|
|
|
.post('/auth/login/logout') |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
clearLoginInfo(); |
|
|
|
if(localStorage.getItem('ticket')){ |
|
|
|
localStorage.removeItem('ticket') |
|
|
|
location.href = 'http://119.167.67.163:18182' |
|
|
|
}else{ |
|
|
|
if (res.code !== 0) { |
|
|
|
//别处登陆时 退出不提示 直接跳登陆页即可 |
|
|
|
if (res.code !== 10007) { |
|
|
|
this.$message.error(res.msg); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
clearLoginInfo(); |
|
|
|
// this.$router.push({ name: 'login' }); |
|
|
|
console.log(`${location.origin}/epmet-work-pc/#/login`); |
|
|
|
location.href = `${location.origin}/epmet-work-pc/#/login` |
|
|
|
} |
|
|
|
// if (localStorage.getItem('userType') === 'work') { |
|
|
|
// this.$router.push({ name: 'loginWork' }) |
|
|
|
// } else { |
|
|
|