|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-03-26 14:32:03
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-05-14 18:35:48
|
|
|
|
|
* @LastEditTime: 2022-05-16 09:44:51
|
|
|
|
|
* @Description: file content
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
@ -76,18 +76,15 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
watch:{
|
|
|
|
|
msgData(){
|
|
|
|
|
console.log('------+++-');
|
|
|
|
|
this.$nextTick(()=>{
|
|
|
|
|
uni.pageScrollTo({
|
|
|
|
|
scrollTop : 99999,
|
|
|
|
|
duration : 0
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onPageScroll(res) {
|
|
|
|
|
// && !this.isInput
|
|
|
|
|
if (res.scrollTop <= 0) {
|
|
|
|
|
this.getHistoryMsg();
|
|
|
|
|
}
|
|
|
|
@ -145,7 +142,6 @@ export default {
|
|
|
|
|
* 发送心跳
|
|
|
|
|
*/
|
|
|
|
|
heartMsg(){
|
|
|
|
|
return false;
|
|
|
|
|
MsbWebSkt.send({
|
|
|
|
|
data : JSON.stringify({
|
|
|
|
|
traceId : createUUID(),
|
|
|
|
@ -157,7 +153,7 @@ export default {
|
|
|
|
|
complete: () =>{
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
this.heartMsg();
|
|
|
|
|
},1000000)
|
|
|
|
|
},5000)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|