This commit is contained in:
qianhao.xu
2023-12-04 15:54:50 +08:00
parent 1491676c6f
commit e3585a0204
5 changed files with 158 additions and 77 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) => {
@@ -83,6 +83,11 @@ export default {
}
})
//接受缓存
connection.on('GetCache', (checkid, sum) => {
store.dispatch('socket/GetCache', {checkid,sum})
})
},
}