更新 r 文件 tail this 名称 数据 outer 参数
先把 router 文件引入过来
- import router from'.. / .. / router'
- router.push({name: 'merchantStationDetail', params: {"authorCheckList":authorCheckList,"stationName":stationName,"groupId":groupId}});
- 填入router配置的路径名称,和相关参数
- 获取参数
- this.authorCheckList=this.$route.params.authorCheckList;
- nextTick
- 应用场景
- 当一些数据更新后,需要回调一些校验函数
- 这个时候需要nextTick钩子函数,获取到数据更新后的状态
vue-router 使用以及 vue 下的 nextTick 钩子函数
来源: http://www.bubuko.com/infodetail-2273538.html