完善ws消息

This commit is contained in:
龙运模
2024-09-04 19:32:50 +08:00
parent f0bb390907
commit 956e255899
4 changed files with 87 additions and 63 deletions
+2 -3
View File
@@ -148,7 +148,7 @@ function webSocketOnMessage(msg) {
}else{
showNot = ElNotification.error({
title: '系统退出',
message: result.msg,
message: result.data.msg,
duration:0
});
handleError('系统退出', result.msg);
@@ -156,8 +156,7 @@ function webSocketOnMessage(msg) {
}
eventBus.$emit('sockBack',result);
if(result.type == 'init'){
if(result.data && result.data.type == 1){
if(showNot && showNot.close){
showNot.close();
}