vue通过路由跳转实现重定向

1.vue通过路由跳转实现重定向

this.$router.replace({ path: '/redirect' + view.fullPath });

2.通过路由跳转到制定的路径

this.$router.push(latestView.fullPath)

3.通过路由跳转到根目录

this.$router.push('/');
原文地址:https://www.cnblogs.com/pwindy/p/14745867.html