YuJian
/
Storyofvue
Archived
1
0
Fork 0
Browse Source

fix problem

detail-header
遇见 5 years ago
parent
commit
ed1bc44054
  1. 3
      src/pages/detail/components/header.vue

3
src/pages/detail/components/header.vue

@ -40,6 +40,9 @@ export default { @@ -40,6 +40,9 @@ export default {
},
activated: function() {
window.addEventListener("scroll", this.handleScroll);
},
deactivated: function() {
window.removeEventListener("scroll", this.handleScroll);
}
}
</script>