This commit is contained in:
yumoqing 2024-08-20 17:36:30 +08:00
parent 64360fc964
commit bb05f80bb2

View File

@ -71,6 +71,13 @@ bricks.RTCClient = class extends bricks.VBox {
} }
choose_peer(){ choose_peer(){
var items = []; var items = [];
if (this.onlineList.length < 1){
var w = new bricks.Error({title:'Error',
timeout:4,
message:'no peer logined'
});
w.open();
}
this.onlineList.forEach( p => { this.onlineList.forEach( p => {
var m = { var m = {
name:p.id, name:p.id,