hejianhao
2025-05-09 a982b6de0096cebfe51629c34d77b111bdee2f79
culture/src/layouts/components/HeaderNav.vue
@@ -57,7 +57,7 @@
    // 退出登录
    outLogin() {
      sessionStorage.clear()
      this.$router.replace({ path: "/login" });
      this.$router.replace({ path: "/" });
    },
    // 关闭标签
    closeTag(tag) {
@@ -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); // 减少延迟时间
    }
  },