[*] 日常优化

This commit is contained in:
acgist
2023-08-14 07:59:18 +08:00
parent 4b63339947
commit f31872fe17
4 changed files with 62 additions and 37 deletions

View File

@@ -204,8 +204,12 @@ export default {
* @return 是否执行完成
*/
async callback(response, error) {
const me = this;
const { code, message, header, body } = response;
const {
code,
message,
header,
body
} = response;
const { signal } = header;
switch (signal) {
case "media::track" :
@@ -213,7 +217,7 @@ export default {
console.info("新增媒体轨道", clientId, track);
break;
case "client::config" :
me.roomVisible = true;
this.roomVisible = true;
break;
case "platform::error":
if (error) {