修复了登陆时首页蓝点未点亮的bug
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user