跳转其他地方回来,依然显示原来页面内容

79 阅读1分钟
activated() {
        this.$router.push(this.path);
},
beforeRouteLeave (to, from, next) {
        console.log(this.$route.path);
        this.path = this.$route.path;
        next()
}