-
+
@@ -46,6 +47,9 @@ export default {
},
routes() {
return this.$store.state.permission.routes
+ },
+ theme() {
+ return this.$store.state.settings.theme;
}
},
watch: {
@@ -69,6 +73,13 @@ export default {
isActive(route) {
return route.path === this.$route.path
},
+ activeStyle(tag) {
+ if (!this.isActive(tag)) return {};
+ return {
+ "background-color": this.theme,
+ "border-color": this.theme
+ };
+ },
isAffix(tag) {
return tag.meta && tag.meta.affix
},
@@ -189,6 +200,9 @@ export default {
},
closeMenu() {
this.visible = false
+ },
+ handleScroll() {
+ this.closeMenu()
}
}
}