-
-
Save weikx/d8123d2324dcc8e0d8270d084775e050 to your computer and use it in GitHub Desktop.
解决Ios input输入后页面错乱无法点击
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 加入到App.vue | |
document.body.addEventListener('focusout', () => { | |
window.scrollTo({ top: 0, left: 0, behavior: 'smooth' }) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment