Commit 583a37a6 authored by 郭志伟's avatar 郭志伟 Committed by 郭志伟

fix: 信用钱包中授权弹框被键盘顶起显示了

parent bc04df4b
...@@ -46,6 +46,19 @@ export default { ...@@ -46,6 +46,19 @@ export default {
immediate: true, immediate: true,
handler(val) { handler(val) {
this.showAuth = !!this.userInfo.length && val === 2; this.showAuth = !!this.userInfo.length && val === 2;
if (this.showAuth) {
this.$nextTick(() => {
const activeElement = document.activeElement;
if (
activeElement &&
(activeElement.tagName === "INPUT" || activeElement.tagName === "TEXTAREA")
) {
setTimeout(() => {
activeElement.blur();
}, 0);
}
});
}
} }
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment