created(){
this.$nextTick(() => {
// 禁用右键
document.oncontextmenu = new Function('event.returnValue=false')
// 禁用选择
document.onselectstart = new Function('event.returnValue=false')
//禁止f12
document.οnkeydοwn = new Function('event.returnValue=false')
})
}
vue中禁止f12 右键 选择
最新推荐文章于 2024-03-11 10:09:16 发布