减少日志
This commit is contained in:
parent
b81cedc023
commit
5a39640f74
@ -157,7 +157,7 @@ export default class ClientList {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (data.type === 'pull') {
|
if (data.type === 'pull') {
|
||||||
console.debug('移除客户端:', data)
|
//console.debug('移除客户端:', data)
|
||||||
return this.exit(data)
|
return this.exit(data)
|
||||||
}
|
}
|
||||||
if (data.type === 'offer') {
|
if (data.type === 'offer') {
|
||||||
|
@ -35,7 +35,7 @@ const avatar = localStorage.getItem('avatar') ?? '/favicon.ico'
|
|||||||
const clientList = new ClientList({
|
const clientList = new ClientList({
|
||||||
name,
|
name,
|
||||||
onexit: async client => {
|
onexit: async client => {
|
||||||
console.log(client.name, '离开频道', client)
|
console.log(client.name, '离开频道')
|
||||||
// 从列表中移除未缓存的此用户的音乐, 但可能多人都有此音乐且未缓存
|
// 从列表中移除未缓存的此用户的音乐, 但可能多人都有此音乐且未缓存
|
||||||
// 因此每条音乐都要检查是否有其他用户也有此音乐, 如果有则不移除
|
// 因此每条音乐都要检查是否有其他用户也有此音乐, 如果有则不移除
|
||||||
const 此用户音乐 = client.musicList?.map(item => item.id) || []
|
const 此用户音乐 = client.musicList?.map(item => item.id) || []
|
||||||
|
Loading…
Reference in New Issue
Block a user