Commit 3103a33f authored by danfuman's avatar danfuman

修改

parent 6be5e96a
...@@ -136,10 +136,10 @@ export default { ...@@ -136,10 +136,10 @@ export default {
}, },
mounted() { mounted() {
window.addEventListener("scroll",this.scrolling) // window.addEventListener("scroll",this.scrolling)
}, },
beforeDestroy() { beforeDestroy() {
window.removeEventListener("scroll", this.scrolling); // window.removeEventListener("scroll", this.scrolling);
}, },
methods: { methods: {
scrolling() { scrolling() {
......
...@@ -355,10 +355,10 @@ export default { ...@@ -355,10 +355,10 @@ export default {
}) })
}, },
destroyed () { destroyed () {
window.removeEventListener('scroll', this.handleScroll) // window.removeEventListener('scroll', this.handleScroll)
}, },
beforeDestroy() { beforeDestroy() {
window.removeEventListener("scroll", this.scrolling); // window.removeEventListener("scroll", this.scrolling);
}, },
created() { created() {
this.dataRegion() this.dataRegion()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment