|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-05-04 17:48:12
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-06-13 10:50:28
|
|
|
|
|
* @LastEditTime: 2022-06-13 11:49:37
|
|
|
|
|
* @Description: file content
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
@ -65,7 +65,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
curSession(){
|
|
|
|
|
return this.$store.state.socketMsgData;
|
|
|
|
|
let data = this.$store.state.socketMsgData
|
|
|
|
|
Im.setCurSessionId(data.id);
|
|
|
|
|
return data;
|
|
|
|
|
},
|
|
|
|
|
msgData(){
|
|
|
|
|
let data = this.curSession.messageList || [];
|
|
|
|
@ -77,6 +79,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
this.readMsg();
|
|
|
|
|
},5000)
|
|
|
|
@ -109,6 +112,10 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
destroyed(){
|
|
|
|
|
Im.setCurSessionId(null);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|