src/components/footer/footer.vue
@@ -62,10 +62,13 @@ // 通过路由跳转判断选中的样式 if (this.$route.name == "/") { this.active = 0; this.currIndex = 0; } else if (this.$route.name == "myTextBook") { this.active = 1; this.currIndex = 2; } else if (this.$route.name == "personalCenter") { this.active = 2; this.currIndex = 3; } } };