解决办法再退出方法里加上: this.$router.replace(`/login?redirect=${this.$route.fullPath}`) location.reload();//重新加载