禁用右键菜单,退出前确认

ready() {
        window.oncontextmenu = () => false;
        window.onbeforeunload = () => "";
    },

你可能感兴趣的:(禁用右键菜单,退出前确认)