返回上一页
this.$router.back();
this.$router.go(-1);
跳转到其他页
this.$router.push('/home'); // html5 的 history 模式: pushState
this.$router.replace('/home'); //返回不了上一页
打开新页
window.open(url, '_blank');
跳转
window.location.href = url;
this.$router.back();
this.$router.go(-1);
this.$router.push('/home'); // html5 的 history 模式: pushState
this.$router.replace('/home'); //返回不了上一页
打开新页
window.open(url, '_blank');
跳转
window.location.href = url;