diff --git a/src/components/custom-scroll-title/index.vue b/src/components/custom-scroll-title/index.vue index 50f6cbf..13accac 100644 --- a/src/components/custom-scroll-title/index.vue +++ b/src/components/custom-scroll-title/index.vue @@ -39,7 +39,7 @@ const router = useRouter(); onMounted(() => { handleWidth(); }); -const emit = defineEmits(['changeTitle']); +// const emit = defineEmits(['changeTitle']); const props = defineProps({ titles: { type: Array, @@ -109,7 +109,7 @@ function handleTitleBtn(t = -1) { } function handleTitleClick(val) { activeTitle.value = val; - emit('changeTitle', val); + // emit('changeTitle', val); router.push({ name: val }); } diff --git a/src/layouts/index.vue b/src/layouts/index.vue index ff9280a..25495fd 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -1,6 +1,6 @@