优化
This commit is contained in:
parent
4b153997d3
commit
6447a9cfae
@ -140,18 +140,18 @@ function webSocketOnMessage(msg) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (result.type == -1 || result.type == 8 || result.type == 9) {
|
if (result.type == -1 || result.type == 8 || result.type == 9) {
|
||||||
if(result.type == -1){
|
// if(result.type == -1){
|
||||||
if(result.data && result.data.token){
|
// if(result.data && result.data.token){
|
||||||
tool.cookie.set("TOKEN", result.data.token);
|
// tool.cookie.set("TOKEN", result.data.token);
|
||||||
}
|
// }
|
||||||
}else{
|
// }else{
|
||||||
showNot = ElNotification.error({
|
showNot = ElNotification.error({
|
||||||
title: '系统退出',
|
title: '系统退出',
|
||||||
message: result.msg,
|
message: result.msg,
|
||||||
duration:0
|
duration:0
|
||||||
});
|
});
|
||||||
handleError('系统退出', result.msg);
|
handleError('系统退出', result.msg);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
eventBus.$emit('sockBack',result);
|
eventBus.$emit('sockBack',result);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user