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
可以更好操作页面
beforeRouteLeave
The text was updated successfully, but these errors were encountered:
uniapp 自带onBackPress方法就能实现你说的场景 onBackPress(e) { //backbutton 是点击物理按键返回,navigateBack是uniapp中的返回(比如左上角的返回箭头) if(e.from === 'backbutton') { this.cancel() return true // 阻止返回 } console.log(e); }
onBackPress(e) { //backbutton 是点击物理按键返回,navigateBack是uniapp中的返回(比如左上角的返回箭头) if(e.from === 'backbutton') { this.cancel() return true // 阻止返回 } console.log(e); }
Sorry, something went wrong.
No branches or pull requests
这个功能解决了什么问题?
可以更好操作页面
你期望的 API 是什么样子的?
beforeRouteLeave
The text was updated successfully, but these errors were encountered: