From 2c6c56a45bfa6a73aad3aa36f515c71e6731eaed Mon Sep 17 00:00:00 2001 From: lonewolfyx <877085893@qq.com> Date: Thu, 5 Mar 2026 16:22:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=96=E6=B6=88=E5=9B=BA=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/work/BusinessApproval/index.vue | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/pages/work/BusinessApproval/index.vue b/pages/work/BusinessApproval/index.vue index fc0ac66..2192746 100644 --- a/pages/work/BusinessApproval/index.vue +++ b/pages/work/BusinessApproval/index.vue @@ -121,30 +121,8 @@ const handleSelect = (payload) => { } -const targetRef = ref(null) -const isFixed = ref(false) - -const handleScroll = () => { - if (!targetRef.value) return - - const rect = targetRef.value.$el - ? targetRef.value.$el.getBoundingClientRect() - : targetRef.value.getBoundingClientRect() - - isFixed.value = rect.top <= -140 -} - onMounted(async () => { await handleQuery() }) - -watch(targetRef, (el) => { - if (!el) return - window.addEventListener('scroll', handleScroll) -}) - -onUnmounted(() => { - window.removeEventListener('scroll', handleScroll) -})