Compare commits
2 Commits
5ed2cf5a8e
...
50bc05ccff
Author | SHA1 | Date | |
---|---|---|---|
50bc05ccff | |||
d5e00f2098 |
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user