1、在需要跳转的地方执行下面代码即可,其中 '/path' 为路由中配置的 path 值:
// this.$router.push('/about')
export default {
methods: {
//this.$router.push('/aaa')
onClickLeft() {
this.$router.push('/');
}
}
};