【发布时间】:2019-10-28 00:48:33
【问题描述】:
我有一个 bootstrap-vue 表,它绑定到一个计算属性,该属性从我的 vuex 存储中获取一些数据。
每一行都有一个 show_details 按钮,根据此链接打开第二行: https://bootstrap-vue.js.org/docs/components/table/#row-details-support
但是,当我的 vuex 存储中的数据发生变化时,表格会重新渲染并失去其状态(所有打开的“show_details”行都返回关闭状态)。
有什么方法可以更新store和table中的table数据,而不丢失table的当前状态?
【问题讨论】:
标签: vue.js vuex bootstrap-vue