|
|
@ -2,7 +2,7 @@
|
|
|
|
* @Author: ch
|
|
|
|
* @Author: ch
|
|
|
|
* @Date: 2022-05-04 17:48:12
|
|
|
|
* @Date: 2022-05-04 17:48:12
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditTime: 2022-05-27 10:56:40
|
|
|
|
* @LastEditTime: 2022-05-27 11:09:52
|
|
|
|
* @Description: file content
|
|
|
|
* @Description: file content
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
|
@ -49,7 +49,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import UiEmpty from "@/components/UiEmpty.vue";
|
|
|
|
import UiEmpty from "@/components/UiEmpty.vue";
|
|
|
|
import {FormatDate} from '@/plugins/utils'
|
|
|
|
import {FormatDate, CreatUuid} from '@/plugins/utils'
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
components: { UiEmpty },
|
|
|
|
components: { UiEmpty },
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
@ -68,20 +68,24 @@ export default {
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
// console.log(`socketMsgData`, this.$store.state);
|
|
|
|
// console.log(`socketMsgData`, this.$store.state);
|
|
|
|
setTimeout(()=>{
|
|
|
|
setTimeout(()=>{
|
|
|
|
this.readMsg()
|
|
|
|
this.readMsg();
|
|
|
|
},2000)
|
|
|
|
},5000)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 把当前会话消息置为已读
|
|
|
|
* 把当前会话消息置为已读
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
async readMsg(){
|
|
|
|
readMsg(){
|
|
|
|
this.Socket.setRead({
|
|
|
|
this.Socket.send(JSON.stringify({
|
|
|
|
content: {
|
|
|
|
traceId : CreatUuid(),
|
|
|
|
sessionId : this.msgData[0].sessionId
|
|
|
|
traceType : "6",
|
|
|
|
}
|
|
|
|
content: {
|
|
|
|
});
|
|
|
|
sessionId : this.msgData[0].sessionId
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$store.commit("setUnreadCount", 0);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|