We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vue项目引入组件后,我想禁止右击,但是又想开放F12,这个该如何配置,我尝试过几次,只要引入组件后,F12就一定被禁用了
The text was updated successfully, but these errors were encountered:
可以参数控制是否允许打开控制台
Sorry, something went wrong.
我希望打开后触发事件,但不想禁止打开。怎么搞。
@qwIvan 这个是独立的行为,你额外加监听就可以
window.addEventListener('keydown', (e) => { const keyCode = e.keyCode || e.which; if ( keyCode === 123 ) { alert('xxxxxx'); } });
亲测有效
vue3里用import.meta.env里判断开发环境,vue2的忘了XD
No branches or pull requests
vue项目引入组件后,我想禁止右击,但是又想开放F12,这个该如何配置,我尝试过几次,只要引入组件后,F12就一定被禁用了
The text was updated successfully, but these errors were encountered: