This commit is contained in:
yiqiuyang
2025-09-10 00:24:53 +08:00
parent cc70e75a93
commit 80f9714845
3 changed files with 28 additions and 10 deletions

View File

@ -1,7 +1,5 @@
<template>
<div id="home">
<Header id="header" />
</div>
<div id="home"></div>
</template>
<script>
@ -14,10 +12,13 @@ export default {
data() {
return {};
},
mounted() {},
mounted() {
this.receiveBUS();
},
methods: {
receiveBUS() {
this.$bus.on("setActiveIndex", (val) => {
this.$bus.$on("setActiveIndex", (val) => {
console.log("val===>", val);
});
},
@ -29,9 +30,5 @@ export default {
#home {
width: 100%;
height: 100%;
#header {
width: 100%;
height: 74px;
}
}
</style>