vue框架的路由传参

    技术2023-08-19  81

    路由传值

    1.this.$router.push

    this.$router.push({ path: '/', query: .... });

    2.router-link

    <router-link :to="{path:'/',query: .... }" >XXXXX</router-link>

    路由取值

    this.$route.query.userId
    Processed: 0.010, SQL: 9