【发布时间】:2021-04-11 02:03:43
【问题描述】:
尽管我使用了刷新方法,但在我更改了它的 items[] 记录的某些元素后,我的 没有得到更新:
我必须添加一个虚拟/幽灵记录,然后将其删除以获取我想要更新的记录:
this.items[this.posItemEdited] = element;
//this.$refs['theTable'].refresh(); //Doesn't work
//this.$root.$emit('bv::refresh::table', 'theTable'); //Doesn't work
//TRICK: add and delete
this.items.push(element);
this.items.splice(this.items.length - 1, 1);
【问题讨论】:
标签: vue.js vuejs2 bootstrap-vue