From 80f97148456775e8bd0ba71e8ba601b9f9fabbe2 Mon Sep 17 00:00:00 2001 From: yiqiuyang Date: Wed, 10 Sep 2025 00:24:53 +0800 Subject: [PATCH] 11 --- src/App.vue | 21 +++++++++++++++++++++ src/views/header/index.vue | 2 +- src/views/home.vue | 15 ++++++--------- 3 files changed, 28 insertions(+), 10 deletions(-) diff --git a/src/App.vue b/src/App.vue index aa3016d..d9596d5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,9 +1,30 @@ + + diff --git a/src/views/header/index.vue b/src/views/header/index.vue index 46fb6bc..4a35a98 100644 --- a/src/views/header/index.vue +++ b/src/views/header/index.vue @@ -31,7 +31,7 @@ export default { setActiveIndex(id) { if (this.activeIndex !== id) { this.activeIndex = id; - this.$bus.emit("setActiveIndex", this.activeIndex); + this.$bus.$emit("setActiveIndex", this.activeIndex); } }, }, diff --git a/src/views/home.vue b/src/views/home.vue index 0a3bc98..b9c11d6 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -1,7 +1,5 @@