router没有提供清空数据的方法。我们可以这样写

this.$router.replace({path: '/login'});
location.reload();
Logo

前往低代码交流专区

更多推荐