<template>
    <router-view :key="route.path"></router-view>
</template>


<script setup>
import { useRoute } from "vue-router";

const route = useRoute()
import { globalEventBus } from '@/common/eventBus'


// 标题事件
for (let i = 1; i < 6; i++) {
    globalEventBus.on('header' + i, data => {
        globalEventBus.emit('compheader' + i, data)
        console.log(i)

    })


}



</script>

