created() {
this.$nextTick(() => {
// 禁用右键
document.oncontextmenu = new Function("event.returnValue=false");
// 禁用选择
document.onselectstart = new Function("event.returnValue=false");
});
},
vue禁止右键
猜你喜欢
转载自blog.csdn.net/qq_59175937/article/details/126768533
今日推荐
周排行