Skip to content

Commit b311334

Browse files
authored
Revert "Refresh only once after login (#42)" (#59)
This reverts commit 5105bc3.
1 parent b0e0e63 commit b311334

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/views/Login/Login.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ export default {
193193
this.$store.dispatch('global/getCurrentUser', username),
194194
this.$store.dispatch('global/getSystemInfo'),
195195
]).then(() => {
196-
location.href = '/';
196+
this.$router.push('/');
197+
location.reload();
197198
});
198199
}
199200
})

0 commit comments

Comments
 (0)