在进行项目开发的过程中,需要使用路由进行跳转。如下:

  // 不带有参数,在页面上跳转到别的页面

  1. this.$router.push('/login/init'); 

 

  // 带有参数

  2. this.$router.push({

    path: '/login/validate',

    query: {

      domain: 'admin'

    }

  });

  获取参数:  this.$route.query.domain 

 

相关文章:

  • 2022-12-23
  • 2021-04-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-24
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
相关资源
相似解决方案