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(() => { onMounted(() => {
handleWidth(); handleWidth();
}); });
// const emit = defineEmits(['changeTitle']); const emit = defineEmits(['changeTitle']);
const props = defineProps({ const props = defineProps({
titles: { titles: {
type: Array, type: Array,
@ -109,7 +109,7 @@ function handleTitleBtn(t = -1) {
} }
function handleTitleClick(val) { function handleTitleClick(val) {
activeTitle.value = val; activeTitle.value = val;
// emit('changeTitle', val); emit('changeTitle', val);
router.push({ name: val }); router.push({ name: val });
} }
</script> </script>

View File

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