提交 76de5e44 编写于 作者: 张磊's avatar 张磊

tab change

上级 d9225581
...@@ -28,11 +28,23 @@ const socket = { ...@@ -28,11 +28,23 @@ const socket = {
socketClient.on('diagnose_push_event', (socket) => { socketClient.on('diagnose_push_event', (socket) => {
const { list, allSize, countRespList } = socket; const { list, allSize, countRespList } = socket;
console.log('-rootState', rootState); console.log('-rootState', rootState);
const { currentTabStatus } = rootState.main;
context.commit('main/updateCurrentCalList', countRespList, { context.commit('main/updateCurrentCalList', countRespList, {
root: true, root: true,
}); });
context.commit('main/updateCurrentDiagList', list, { root: true });
context.commit('main/updateAllSize', allSize, { root: true }); context.commit('main/updateAllSize', allSize, { root: true });
const l = list[0];
if (currentTabStatus == 99) {
context.commit('main/updateCurrentDiagList', list, { root: true });
} else {
if (currentTabStatus == l.adviceStatus) {
context.commit('main/updateCurrentDiagList', list, { root: true });
}
if (l.length == 0) {
context.commit('main/updateCurrentDiagList', list, { root: true });
}
}
}); });
socketClient.on('diagnose_call_push_event', (socket) => { socketClient.on('diagnose_call_push_event', (socket) => {
const l = window._VM.$store.state.main.noticeList; const l = window._VM.$store.state.main.noticeList;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册