优化控制台消息推送
This commit is contained in:
@@ -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);
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user