fix: association table block overwirtten by default values in popver action (#3056)

This commit is contained in:
katherinehhh 2023-11-17 16:11:30 +08:00 committed by GitHub
parent 76a225e354
commit 36043be130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,6 +139,7 @@ export const useTableBlockProps = () => {
if (!ctx?.service?.loading) { if (!ctx?.service?.loading) {
field.value = []; field.value = [];
field.value = ctx?.service?.data?.data; field.value = ctx?.service?.data?.data;
field.setInitialValue(ctx?.service?.data?.data);
field.data = field.data || {}; field.data = field.data || {};
field.data.selectedRowKeys = ctx?.field?.data?.selectedRowKeys; field.data.selectedRowKeys = ctx?.field?.data?.selectedRowKeys;
field.componentProps.pagination = field.componentProps.pagination || {}; field.componentProps.pagination = field.componentProps.pagination || {};