Javascript b-表和行元素函数

Javascript b-表和行元素函数,javascript,vue.js,bootstrap-vue,Javascript,Vue.js,Bootstrap Vue,我是Vue和bootstrap Vue的新手,我有以下表,在表中,当单击行时,我将传递以下函数以执行: <b-table striped :items="currentCareerReactive.assessmentApplicationsInfo" :fields="tableFields" @row-clicked="clickTableRow" > </b-table> ... clickTableRow( item, index ) {

我是Vue和bootstrap Vue的新手,我有以下表,在表中,当单击行时,我将传递以下函数以执行:

<b-table
  striped
  :items="currentCareerReactive.assessmentApplicationsInfo"
  :fields="tableFields"
  @row-clicked="clickTableRow"
>
</b-table>

...

clickTableRow( item, index ) {
  console.log('[dashboard.vue] clickTableRow()');
  this.goToDetailsPage( 
    this.currentCareerReactive.lastAssessmentApplicationResult.assessmentApplicationPublicId );
},

goToDetailsPage( dId ) {
  this.$router.push( { name: 'details', params: { dId, id: this.$route.params.id } } );
},

...
单击表格行(项目、索引){
console.log(“[dashboard.vue]clickTableRow()”);
这是goToDetailsPage(
this.currentCareerReactive.lastAssessmentApplicationResult.assessmentApplicationPublicId);
},
goToDetailsPage(dId){
this.$router.push({name:'details',params:{dId,id:this.$route.params.id}});
},
但在我单击该行后,将显示

下一页加载时没有任何缺陷,但这个错误让我感到不舒服。它发生在旧页的destroy()之后和新页的beforeCreate()之前

如果我通过一个按钮调用这个函数,页面将正常加载,没有任何错误,所以我猜是b表上的某些东西导致了这一点


有人知道会发生什么吗?

我假设您使用的是BootstrapVue 2.1.0,它在
中悬停的事件处理程序行中有一个bug。升级至最新的BootstrapVue v2.2.0+,该版本已修复此问题


请参见

Welp上的变更日志,这是一个如此简单的解决方案。谢谢特洛伊!