culture/src/layouts/components/HeaderNav.vue
@@ -73,23 +73,26 @@ }, // 跳转标签 goTag(tag) { this.$router.push(tag.path) this.$router.push({ path: tag.path, query: tag.query }) }, handleWheel(e) { if (this.scrollTimer) { this.scrollAmount += e.deltaY; return; } const container = e.currentTarget; this.scrollAmount = e.deltaY; const scroll = () => { container.scrollLeft += this.scrollAmount * 1.2; // 增加滚动速度 this.scrollAmount = 0; this.scrollTimer = null; }; this.scrollTimer = setTimeout(scroll, 8); // 减少延迟时间 } },