diff --git a/src/layout/components/userbar.vue b/src/layout/components/userbar.vue index c54d57c5..78cbb47c 100644 --- a/src/layout/components/userbar.vue +++ b/src/layout/components/userbar.vue @@ -166,7 +166,7 @@ export default { }) .then(() => { this.$TOOL.data.remove("TOKEN") - this.$router.push(`/login?redirect=${this.$route.fullPath}`) + this.$router.push(`/login?redirect=${this.$route.fullPath}`).then(() => { location.reload() }) }) .catch(() => { //取消退出