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