From 2218e034bdf85e9223a9b82bb4e7f26e1f4a46ec Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Wed, 15 Jun 2022 20:36:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=8B=E8=83=BD=E6=A1=88=E4=BE=8Bbug?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assignCase/components/AssignCaseDetailPage.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/front/src/views/assignCase/components/AssignCaseDetailPage.vue b/front/src/views/assignCase/components/AssignCaseDetailPage.vue index 91839f92..7055107c 100644 --- a/front/src/views/assignCase/components/AssignCaseDetailPage.vue +++ b/front/src/views/assignCase/components/AssignCaseDetailPage.vue @@ -108,6 +108,11 @@ import { useRouter } from 'vue-router' const router = useRouter() let val = router.currentRoute.value.query.val + const scrollTop = ref(0) + let dataFrom = ref({}) + const domArr = ref([]) + const selectNow = ref('') + let tabName = ref('案例背景') console.log('val', val) //图片样式切换 function pictureFormat(name) { @@ -122,9 +127,9 @@ val = name router.push({ path: 'AssignCaseDetailPage', query: { val } }) } - let dataFrom = ref({}) const init = () => { val = router.currentRoute.value.query.val + tabName.value = '案例背景' if (val == '道路保洁监管场景') { dataFrom.value = { name: '道路保洁监管场景', @@ -216,7 +221,6 @@ }, { immediate: true } ) - let tabName = ref('案例背景') //tab点击事件 const tabSwitch = (item, index) => { tabName.value = item.title @@ -258,13 +262,9 @@ view.style.top = '220px' } } - const scrollTop = ref(0) - const domArr = ref([]) - const selectNow = ref('') onMounted(() => { // console.clear() window.addEventListener('scroll', () => { - debugger domArr.value = document.querySelectorAll( '.assign-case-detail-page-content-center-card' )