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