diff --git a/src/layout/header-aside/components/menu-header/index.vue b/src/layout/header-aside/components/menu-header/index.vue index fe307770..62df2621 100644 --- a/src/layout/header-aside/components/menu-header/index.vue +++ b/src/layout/header-aside/components/menu-header/index.vue @@ -117,6 +117,7 @@ export default { beforeDestroy () { // 取消监听 window.removeEventListener('resize', this.throttledCheckScroll) + window.removeEventListener('load', this.checkScroll) } }