Skip to content

Commit 124af71

Browse files
committed
fix(popup): Remove unnecessary $nextTick
1 parent decffd9 commit 124af71

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/components/Popup.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ export default {
3434
visible: {
3535
immediate: true,
3636
handler(val) {
37-
this.$nextTick(() => {
38-
if (val) {
39-
this.displayPopup()
40-
}
41-
})
37+
if (val) {
38+
this.displayPopup()
39+
}
4240
},
4341
},
4442
},

0 commit comments

Comments
 (0)