修复了登陆时首页蓝点未点亮的bug

This commit is contained in:
蒋吉兆
2021-01-24 17:36:38 +08:00
parent 18571ca224
commit 718574cdf3
3 changed files with 12 additions and 9 deletions
@@ -43,7 +43,6 @@ export default {
rightActive: ""
};
},
computed: {
...mapGetters("user", ["userInfo"]),
defaultRouter() {
@@ -69,7 +68,11 @@ export default {
];
this.historys =
JSON.parse(sessionStorage.getItem("historys")) || initHistorys;
this.activeValue = window.sessionStorage.getItem("activeValue");
if(!window.sessionStorage.getItem("activeValue")){
this.activeValue = this.$route.name + JSON.stringify(this.$route.query)+JSON.stringify(this.$route.params)
}else{
this.activeValue = window.sessionStorage.getItem("activeValue");
}
this.setTab(this.$route);
},