修改自定义逻辑处理

v1.2.0
于肖磊 2025-01-21 11:44:30 +08:00
parent fa10cedb9e
commit 4c1539a415
2 changed files with 6 additions and 2 deletions

View File

@ -201,10 +201,13 @@ const operation_end = (title:string, is_compare: boolean = true) => {
let old_compare_data = {};
if (props.configType == 'custom') {
old_index = data_source_store.custom_records_index;
old_compare_data = cloneDeep(data_source_store.custom_records[old_index].value) || {};
old_compare_data = cloneDeep(data_source_store?.custom_records[old_index]?.value || {}) || {};
} else {
old_index = data_source_store.custom_group_records_index;
old_compare_data = cloneDeep(data_source_store.custom_group_records[old_index].value) || {};
old_compare_data = cloneDeep(data_source_store?.custom_group_records[old_index]?.value || {}) || {};
}
if (old_index == -1) {
return;
}
//
const new_compare_data = cloneDeep(draglist.value.diy_data);

View File

@ -721,6 +721,7 @@ const start_drag_area_box = (index: number, event: MouseEvent) => {
const { x, y } = cloneDeep(item.location);
item.location.record_x = x;
item.location.record_y = y;
item.location.staging_y = y;
}
});
if (hot_list?.data.length > 0) {