diff --git a/src/views/layout/components/AppHeader.vue b/src/views/layout/components/AppHeader.vue index 6326221..3c2b7d1 100644 --- a/src/views/layout/components/AppHeader.vue +++ b/src/views/layout/components/AppHeader.vue @@ -53,7 +53,9 @@ }, logout() { this.$store.dispatch('LogOut').then(() => { - location.reload() // 为了重新实例化vue-router对象 避免bug + // location.reload() // 为了重新实例化vue-router对象 避免bug + // location // 为了重新实例化vue-router对象 避免bug + this.$router.replace('/') }) }, resetPwd() {