refactor(滚动锁定): 重构页面滚动锁定逻辑

- 使用全局计数器解决多组件并发锁定竞态问题
- 将 HTML class 注入逻辑移至 composable 中统一管理
- 优化锁定状态更新逻辑,避免重复操作
- 移除不再需要的计算属性和导入
This commit is contained in:
2026-04-27 02:34:19 +08:00
parent 76e7b4b817
commit 226dc5c147
4 changed files with 42 additions and 45 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ onBeforeUnmount(() => {
cleanupHeroScroll?.()
})
defineExpose({ heroStageRef, heroRef, play })
defineExpose({ play })
</script>
<template>