This commit is contained in:
2020-12-03 16:36:20 +08:00
parent dc307cc2c3
commit a80bc93086
10 changed files with 16 additions and 10 deletions

5
dist/js/common.js vendored
View File

@@ -327,6 +327,9 @@ function addVideoView(id, isLocal = false) {
}
function addMemberView(id) {
if($("#" + id)[0]){
return ;
}
let memberElm = $('#member-me').clone();
memberElm.attr('id', id);
// memberElm.attr('class', id);
@@ -360,7 +363,7 @@ function addMemberView(id) {
function removeView(id) {
console.log("被删除")
if ($('#' + id)[0]) {
$('#' + id).remove();
// $('#' + id).remove();
//将video-grid中第一个div设为main-video
$('.video-box')
.first()