diff --git a/components/popup/index.vue b/components/popup/index.vue index f551f7aea..26ad0831f 100644 --- a/components/popup/index.vue +++ b/components/popup/index.vue @@ -109,7 +109,9 @@ this.$_showPopupBox() } } else { - this.$_hidePopupBox() + setTimeout(() => { + this.$_hidePopupBox() + }, 0) } }, preventScrollExclude(val, oldVal) { diff --git a/components/toast/toast.vue b/components/toast/toast.vue index e2bbadad0..a4e1fa401 100644 --- a/components/toast/toast.vue +++ b/components/toast/toast.vue @@ -86,9 +86,7 @@ export default { this.$emit('hide') }, hide() { - setTimeout(() => { - this.visible = false - }, 0) + this.visible = false }, }, }