35 lines
625 B
Vue
Raw Normal View History

2024-01-08 18:30:38 +08:00
<template>
2024-02-22 18:12:18 +08:00
<div class="main-box">
2024-01-08 18:30:38 +08:00
<router-view :key="route.path"></router-view>
2024-02-22 18:12:18 +08:00
</div>
2024-01-08 18:30:38 +08:00
</template>
<script setup>
import { useRoute } from "vue-router";
const route = useRoute()
2024-02-22 18:12:18 +08:00
import { globalEventBus } from '@/common/eventBus'
2024-01-08 18:30:38 +08:00
// 标题事件
for (let i = 1; i < 6; i++) {
globalEventBus.on('header' + i, data => {
globalEventBus.emit('compheader' + i, data)
console.log(i)
})
}
</script>
2024-02-22 18:12:18 +08:00
<style>
.main-box{
width: 100vw;
height: 100vh;
overflow: hidden;
background-image: url('/static/img/index/index_bg.png');
background-size: 100% 100%;
}
</style>
2024-01-08 18:30:38 +08:00