This commit is contained in:
2020-11-27 16:08:58 +08:00
parent 925afb68b8
commit 1866930ade
9 changed files with 23 additions and 11 deletions

18
dist/js/common.js vendored
View File

@@ -155,9 +155,21 @@ function setBtnClickFuc() {
);
//logout
$('#logout-btn').on('click', () => {
leave();
$('#room-root').hide();
$('#login-root').show();
// window.location.hash='edit'
// console.log(window.location.hash)
var x;
var r=confirm("您确认关闭吗?");
if (r==true){
leave();
$('#room-root').hide();
$('#login-root').show();
}
else{
x="你按下了\"取消\"按钮!";
}
// leave();
// $('#room-root').hide();
// $('#login-root').show();
});
//switch main video
$('#main-video').on('click', () => {