瀏覽代碼

修复“替换所有选中列表中的数据为最新数据,避免脚本返回的选中数据不更新”报错问题

shenqilong 11 月之前
父節點
當前提交
d37a4824da
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/business/platform/data/templaterender/templates/list.vue

+ 2 - 2
src/business/platform/data/templaterender/templates/list.vue

@@ -725,8 +725,8 @@ export default {
                         tableEl.setSelectionRadio(row)
                     }
                     // fixbug: 替换所有选中列表中的数据为最新数据,避免脚本返回的选中数据不更新
-                    const index = this.selectionAll.findIndex(item => this.getPkValue(item) === pkValue)
-                    this.selectionAll[index] = row
+                    // const index = this.selectionAll.findIndex(item => this.getPkValue(item) === pkValue)
+                    // this.selectionAll[index] = row
                 }
             })
         },