添加了弹框

This commit is contained in:
luyuan 2020-11-27 16:07:56 +08:00
parent 577936d62e
commit 925afb68b8
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
2 changed files with 18 additions and 6 deletions

View File

@ -155,9 +155,21 @@ function setBtnClickFuc() {
);
//logout
$('#logout-btn').on('click', () => {
// 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', () => {

View File

@ -1,5 +1,5 @@
<template>
<iframe style="width:100%;height: 100%" :src="url" frameborder="0"></iframe>
<iframe id="iframe" style="width:100%;height: 100%" :src="url" frameborder="0"></iframe>
</template>
<style lang="scss" scoped>
@ -7,7 +7,7 @@
<script lang="ts">
import { getliveinfo } from '@/api';
import store from '@/store';
import { defineComponent, ref } from 'vue';
import { defineComponent, onMounted, ref, watch } from 'vue';
import { useRoute } from 'vue-router';