mounted() {
document.addEventListener("click", (e) => {
let that = this
if (!this.$el.contains(e.target)) {
that.videoShow = false; //点击其他区域关闭
} else {
that.videoShow = true;
}
});
},
08-10
2288
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-28
2207
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)