|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-04-25 14:39:19
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-04-27 10:12:40
|
|
|
|
|
* @LastEditTime: 2022-04-28 14:43:16
|
|
|
|
|
* @Description: file content
|
|
|
|
|
*/
|
|
|
|
|
import store from "../store";
|
|
|
|
@ -44,7 +44,6 @@ const sessionMsg = (ctx)=>{
|
|
|
|
|
if(!sessionListFlag){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
// ctx.forEach(item => {
|
|
|
|
|
ctx.payload = JSON.parse(ctx.payload || {});
|
|
|
|
|
let historyData = store.state.sessionData;
|
|
|
|
|
const hisIndex = historyData.findIndex(i => i.id === ctx.sessionId);
|
|
|
|
@ -69,7 +68,6 @@ const sessionMsg = (ctx)=>{
|
|
|
|
|
}]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
}
|
|
|
|
|
export let MsbWebSkt = null;
|
|
|
|
|
|
|
|
|
@ -105,6 +103,16 @@ export const MsbWebSktInit = () => {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
setInterval(()=>{
|
|
|
|
|
MsbWebSkt.send({
|
|
|
|
|
data : JSON.stringify({
|
|
|
|
|
traceId : createUUID(),
|
|
|
|
|
traceType : "0",
|
|
|
|
|
content: { text : "ping"}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}, 5000);
|
|
|
|
|
resolve();
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|