Commit 8b945405409be743fc8829861fd2a363f802e907
1 parent
bd736be5
fix: DEFECT-1354修复看板管理,切换组件后基本信息丢失
Showing
1 changed file
with
2 additions
and
1 deletions
... | ... | @@ -75,7 +75,7 @@ |
75 | 75 | |
76 | 76 | createSelectWidgetModeContext(currentMode); |
77 | 77 | |
78 | - const currentRecord = ref<WidgetDataType>(); | |
78 | + const currentRecord = ref<Nullable<Recordable>>({}); | |
79 | 79 | |
80 | 80 | const [registerModal, { closeModal }] = useModalInner( |
81 | 81 | (params: ModalParamsType<WidgetDataType>) => { |
... | ... | @@ -105,6 +105,7 @@ |
105 | 105 | if (activeKey === TabKeyEnum.VISUAL) { |
106 | 106 | dataSource.value = (dataSourceFormEl.value?.getFormValues() as DataSourceType[]) || []; |
107 | 107 | } |
108 | + currentRecord.value = basicInfoFromEl.value?.getFormValues() || {}; | |
108 | 109 | }; |
109 | 110 | |
110 | 111 | const handleNewRecord = () => { | ... | ... |