From b0087d1a50b45c64669f15bd0996f858cb46b086 Mon Sep 17 00:00:00 2001 From: gssong <1742057357@qq.com> Date: 星期一, 01 四月 2024 20:59:52 +0800 Subject: [PATCH] #I96DTG update 类型下拉框和java类名下拉框没有联动 --- src/layout/components/TagsView/ScrollPane.vue | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layout/components/TagsView/ScrollPane.vue b/src/layout/components/TagsView/ScrollPane.vue index 2223070..3b30043 100644 --- a/src/layout/components/TagsView/ScrollPane.vue +++ b/src/layout/components/TagsView/ScrollPane.vue @@ -5,13 +5,13 @@ </template> <script setup lang="ts"> +import { RouteLocationNormalized } from 'vue-router'; import useTagsViewStore from '@/store/modules/tagsView'; -import { TagView } from 'vue-router'; const tagAndTagSpacing = ref(4); const scrollContainerRef = ref<ElScrollbarInstance>(); -const scrollWrapper = computed(() => scrollContainerRef.value?.$refs.wrapRef as any); +const scrollWrapper = computed(() => scrollContainerRef.value?.$refs.wrapRef); onMounted(() => { scrollWrapper.value?.addEventListener('scroll', emitScroll, true); @@ -33,7 +33,7 @@ const tagsViewStore = useTagsViewStore(); const visitedViews = computed(() => tagsViewStore.visitedViews); -const moveToTarget = (currentTag: TagView) => { +const moveToTarget = (currentTag: RouteLocationNormalized) => { const $container = scrollContainerRef.value?.$el; const $containerWidth = $container.offsetWidth; const $scrollWrapper = scrollWrapper.value; -- Gitblit v1.9.3