Vue Element-ui 页面跳转
2022-10-08 17:22:18
250
{{single.collect_count}}

1、a 标签+传参

html

 <router-link :to="`supplyList/id/0`">查看补货清单</router-link>

roter

{path:"supplyList/id/:id",name:"SupplyList",component: SupplyList},

2、 返回上一页、刷新、跳转指定页面

html

<el-button @click="$router.go(0)" title="刷新" size="small" type="info" icon="el-icon-refresh"></el-button> <el-button @click="$router.go(-1)" title="返回上一面" size="small" type="info"icon="el-icon-refresh"></el-button>

js

this.$router.go(-1); //返回上一页面

this.$router.push(supplyList/id/+this.supply_store_id); //跳转到指定页面

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}