34 lines
683 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-02-23 11:51:14 +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)
})
}
</script>
2024-02-22 18:12:18 +08:00
<style>
2024-02-23 11:51:14 +08:00
.main-box {
width: 1280px;
height: 720px;
2024-02-22 18:12:18 +08:00
overflow: hidden;
background-image: url('/static/img/index/index_bg.png');
background-size: 100% 100%;
}
2024-02-23 11:51:14 +08:00
div{
box-sizing: border-box;
font-size: 16px;
background-size: 100% 100%;
}
2024-02-22 18:12:18 +08:00
</style>
2024-01-08 18:30:38 +08:00