diff --git a/src/components/affix/affix.vue b/src/components/affix/affix.vue index af9874f9..c0716d8c 100644 --- a/src/components/affix/affix.vue +++ b/src/components/affix/affix.vue @@ -80,6 +80,9 @@ // window.addEventListener('resize', this.handleScroll, false); on(window, 'scroll', this.handleScroll); on(window, 'resize', this.handleScroll); + this.$nextTick(() => { + this.handleScroll(); + }); }, beforeDestroy () { // window.removeEventListener('scroll', this.handleScroll, false);