Commit bfe4fbc1 authored by 以墨为白's avatar 以墨为白 🎧

1

parent 4e97b32e
...@@ -158,7 +158,7 @@ export default { ...@@ -158,7 +158,7 @@ export default {
this.stompClient.unsubscribe(sub); this.stompClient.unsubscribe(sub);
} }
} }
this.stompClient.subscribe('/topic/multicast/' + item.id + '/' + item.teamId, data => { this.stompClient.subscribe(item.teamAddress, data => {
this.chatMessageList.push({ this.chatMessageList.push({
content: JSON.parse(data.body).content, content: JSON.parse(data.body).content,
fromUserId: data.headers.fromUserId, fromUserId: data.headers.fromUserId,
......
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
} }
} }
//订阅聊天室主题,订阅功能中设置ID: //订阅聊天室主题,订阅功能中设置ID:
this.stompClient.subscribe('/topic/multicast/' + item.id, res => { this.stompClient.subscribe(item.address, res => {
this.getRecordsByPagingFn(item); this.getRecordsByPagingFn(item);
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.myNotice.handleClose(); this.$refs.myNotice.handleClose();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment