优化控制台消息推送

This commit is contained in:
龙运模
2024-10-21 18:39:43 +08:00
parent 481dd4af44
commit c174f3df6a
9 changed files with 219 additions and 35 deletions
+2 -1
View File
@@ -5,8 +5,8 @@ import systemConfig from '@/config';
import router from "@/router";
import {ElNotification} from 'element-plus';
import {eventBus} from "./eventBus"
import store from "../store";
// import api from '../api';
// import store from "../store";
let websocket = null;
let global_callback = function () {};
@@ -132,6 +132,7 @@ function webSocketOnMessage(msg) {
} else {
if(msg.type === "") return
result = JSON.parse(msg.data);
store.commit('set_home_msg', result);
// if(result.type == 13){
// store.commit("SET_WS_Msg_NUM", result.data.todo_msg_count);
// }