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) -})