预备signalR

This commit is contained in:
qianhao.xu
2023-12-01 15:38:15 +08:00
parent 4a32635b07
commit 4697aef3ee
7 changed files with 60 additions and 19 deletions

View File

@@ -64,7 +64,7 @@ export default {
// 接收欢迎语
connection.on('welcome', (data) => {
console.log('welcome', data)
Notification.info(data)
// Notification.info(data)
})
// 接收后台手动推送消息
connection.on('receiveNotice', (title, data) => {
@@ -82,5 +82,7 @@ export default {
store.dispatch('socket/getNoticeList', data.data)
}
})
},
}