feat:头部和主容器改造

This commit is contained in:
李想 2025-04-24 11:36:23 +08:00
parent 47ab984f4d
commit d5e00f2098
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" @change-title="handleChangeTitle" />
<custom-scroll-title class="header_titles" />
<section class="_content">
<router-view />
</section>