這里就記錄下用法,方便下次忘記的時(shí)候可以查看
this.$router.push({
name: 'VideoPage',
params: { videoIndex: this.whichHost}
});
在組件中使用:
this.$route.params.videoIndex
這里就記錄下用法,方便下次忘記的時(shí)候可以查看
this.$router.push({
name: 'VideoPage',
params: { videoIndex: this.whichHost}
});
在組件中使用:
this.$route.params.videoIndex