vue页面跳转的两种方式

参考网址: https://www.jb51.net/article/160401.htm

1、利用router-link跳转

<el-table-column
       prop="yhbh"
       label="用户编号"
       width="120">
     <template slot-scope="scope">
         <router-link  class="link" title="点击查询用户信息" :to="{path:'yhxxcx',query:{yhbh:scope.row.yhbh}}" style="color:#409eff">{{scope.row.yhbh}}</router-link>
     </template>
</el-table-column>

2、jq代码进行跳转

this.$router.push({path: '/mainLayout/tjtbjs', query:row})
发布了51 篇原创文章 · 获赞 8 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/weixin_44171757/article/details/103351762