增加工单计划

This commit is contained in:
龙运模
2024-09-01 23:15:16 +08:00
parent 39979c262a
commit 8f703ab06a
8 changed files with 293 additions and 145 deletions
+8 -7
View File
@@ -139,19 +139,20 @@ function webSocketOnMessage(msg) {
global_callback(result);
}
}
if (result.type == -1 || result.type == 8 || result.type == 9) {
// if(result.type == -1){
// if(result.data && result.data.token){
// tool.cookie.set("TOKEN", result.data.token);
// }
// }else{
if (result.type == -1 || result.type == 0 || result.type == 8 || result.type == 9) {
if(result.type == -1 || result.type == 0){
if(result.data && result.data.token){
tool.cookie.set("TOKEN", result.data.token);
}
}else{
showNot = ElNotification.error({
title: '系统退出',
message: result.msg,
duration:0
});
handleError('系统退出', result.msg);
// }
}
}
eventBus.$emit('sockBack',result);