添加了弹框

This commit is contained in:
2020-11-27 16:07:56 +08:00
parent 577936d62e
commit 925afb68b8
2 changed files with 18 additions and 6 deletions

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', () => {