From 91d56f7f29c6ea5a692e85c2b8552d9fef99f627 Mon Sep 17 00:00:00 2001 From: XiaoZhuo Date: Wed, 4 Oct 2023 00:15:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=8F=B0=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=BC=98=E5=8C=96=E5=A4=B1=E8=B4=A5=EF=BC=88?= =?UTF-8?q?=E5=B7=B2=E5=A4=8D=E5=8E=9F=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/client.js | 3 --- public/index.html | 3 --- 2 files changed, 6 deletions(-) diff --git a/public/client.js b/public/client.js index 9f613a3..eab953d 100644 --- a/public/client.js +++ b/public/client.js @@ -61,7 +61,6 @@ export default class ClientList { const client = this.clientlist.find(x => x.id === data.id) const option = this.channels[channel.label] channel.onopen = event => { - console.group('') console.log('对方打开', channel.label, '数据通道') if (option && option.onopen) { option.onopen(event, client) @@ -74,14 +73,12 @@ export default class ClientList { } } channel.onclose = event => { - console.groupEnd('') console.log('对方关闭', channel.label, '数据通道') if (option && option.onclose) { option.onclose(event, client) } } channel.onerror = event => { - console.groupEnd('') console.log(data.name, '通道', channel.label, '发生错误') if (option && option.onerror) { option.onerror(event, client) diff --git a/public/index.html b/public/index.html index 543e5b9..38eb514 100644 --- a/public/index.html +++ b/public/index.html @@ -167,7 +167,6 @@ // 只有一个基本信道, 用于交换和调度信息 clientList.setChannel('base', { onopen: async event => { - console.group('') console.log('打开信道', event.target.label) // 要求对方发送音乐列表 clientList.send('base', JSON.stringify({ type: 'get_music_list' })) @@ -220,11 +219,9 @@ console.log('未知类型:', type) }, onclose: event => { - console.groupEnd('') console.log('关闭信道', event.target.label) }, onerror: error => { - console.groupEnd('') console.log('信道错误', error) } })