diff --git a/vueJs/src/components/Lemon-IMUI/index.vue b/vueJs/src/components/Lemon-IMUI/index.vue index 04a8de149..1493d50c1 100644 --- a/vueJs/src/components/Lemon-IMUI/index.vue +++ b/vueJs/src/components/Lemon-IMUI/index.vue @@ -523,7 +523,7 @@ export default class extends mixins(EventBusMiXin) { .withUrl('/signalr-hubs/signalr-hubs/messages', { accessTokenFactory: () => userToken }) .withAutomaticReconnect({ nextRetryDelayInMilliseconds: () => 60000 }) .build() - this.connection.on('getChatMessage', this.handleReceiveMessage) + this.connection.on('get-chat-message', this.handleReceiveMessage) this.connection.onreconnected(() => { this.handleInitIMUI() }) @@ -592,7 +592,7 @@ export default class extends mixins(EventBusMiXin) { }) const chatMessage = Message.tryParseToChatMessage(message) this.connection - .invoke('SendMessage', chatMessage) + .invoke('send', chatMessage) .then(() => { imui .updateMessage(message.id, message.toContactId, { @@ -616,7 +616,7 @@ export default class extends mixins(EventBusMiXin) { const imui = this.$refs.IMUI as any const chatMessage = Message.tryParseToChatMessage(message) this.connection - .invoke('SendMessage', chatMessage) + .invoke('send', chatMessage) .then(() => { setTimeout(() => { next() diff --git a/vueJs/src/components/Notification/components/UserNofitications.vue b/vueJs/src/components/Notification/components/UserNofitications.vue index 4d5cc440b..88bf39018 100644 --- a/vueJs/src/components/Notification/components/UserNofitications.vue +++ b/vueJs/src/components/Notification/components/UserNofitications.vue @@ -99,7 +99,7 @@ export default class extends mixins(EventBusMiXin) { .withUrl('/signalr-hubs/signalr-hubs/notifications', { accessTokenFactory: () => userToken }) .withAutomaticReconnect({ nextRetryDelayInMilliseconds: () => 60000 }) .build() - this.connection.on('getNotification', data => this.onNotificationReceived(data)) + this.connection.on('get-notification', data => this.onNotificationReceived(data)) this.connection.onclose(error => { console.log('signalr connection has closed, error:') console.log(error) @@ -180,7 +180,7 @@ export default class extends mixins(EventBusMiXin) { } private handleClickNotification(notificationId: string) { - this.connection.invoke('ChangeState', notificationId, ReadState.Read).then(() => { + this.connection.invoke('change-state', notificationId, ReadState.Read).then(() => { const removeNotifyIndex = this.notifications.findIndex(n => n.id === notificationId) this.notifications.splice(removeNotifyIndex, 1) this.trigger('onNotificationReadChanged')