console.log('onSelectedItem', event.data)//this.uid_selected_from_table = event.data["uid"]//成绩详情跳转到别的路由 2种写法,接收时不同//this.router.navigate(['/envelope'], {queryParams:event.data})this.router.navigate(['/envelope', event.data]); } } } 2子组件 import {ActivatedRoute...
It would be nice if it was possible to pass arbitrary data to a component via a data object. this.$router.go({name: '/signout', data: {message: 'Token expired'}}); Which would then be available to the component in the usual format.