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
View File
@@ -1,7 +1,6 @@
<script setup lang="ts">
import { useHead, useSeoMeta } from '#imports'
import { useI18n } from 'vue-i18n'
import { computed } from 'vue'
const { t } = useI18n()