Compare commits

..

No commits in common. "50bc05ccff8631294a068991ddd2c01fee84182d" and "5ed2cf5a8e89c1a73ce0662b6da950e58765d281" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -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 });
}
</script>

View File

@ -1,6 +1,6 @@
<template>
<section class="_contaioner">
<custom-scroll-title class="header_titles" />
<custom-scroll-title class="header_titles" @change-title="handleChangeTitle" />
<section class="_content">
<router-view />
</section>