Vue路由跳转取值

var vm=this;
取值
vm.$route.query.uid
方法跳转传参
    this.$router.push({ path: '/game_user/user_geninfo', query: { uid: this.$route.query.uid }});
router-link传值
      <router-link v-bind:to="{ path: '/game_user/user_generalize', query: { uid:  formItem.uid }}"  style="color:blue" class="1" >推广信息</router-link> &nbsp;&nbsp;&nbsp;
posted @ 2021-08-24 11:23  噜啦啦0001  阅读(115)  评论(0编辑  收藏  举报