refactor(liveRoom): 删除冗余代码并优化错误处理
- 移除了 catch 块中的冗余空分号 -调整了错误处理逻辑,使代码结构更清晰
This commit is contained in:
parent
83d090720a
commit
93a7d853dc
@ -55,7 +55,7 @@ const initializePlayer = async () => {
|
|||||||
// on close
|
// on close
|
||||||
}) .catch(() => {
|
}) .catch(() => {
|
||||||
// on cancel
|
// on cancel
|
||||||
});;
|
})
|
||||||
console.error('播放器初始化失败:', error)
|
console.error('播放器初始化失败:', error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user