Vue Element-ui 页面跳转
1、a 标签+传参html<router-link :to="`supplyList/id/0`">查看补货清单</router-link>roter{path:"supplyList/id/:id",name:"SupplyList",component: SupplyList},2、 返回上一页、刷新、跳转指定页面html<el-butto...
·
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); //跳转到指定页面
更多推荐
已为社区贡献1条内容
所有评论(0)