mounted() {
window.addEventListener("scroll", this.handleScroll);
},
methods: {
handleScroll() {
let top = document.documentElement.scrollTop;
if (top > 150) {
this.topShow = true;
} else if (top < 150) {
this.topShow = false;
}
},
},