|
@ -47,7 +47,7 @@ const MdwMessage = () => { |
|
|
if (form.getFieldValue('id') === 0) { |
|
|
if (form.getFieldValue('id') === 0) { |
|
|
setTemplateField(['name']); |
|
|
setTemplateField(['name']); |
|
|
} else { |
|
|
} else { |
|
|
setTemplateField(currentTemplate.fields.split(",")); |
|
|
|
|
|
|
|
|
setTemplateField(currentTemplate?.fields.split(",")); |
|
|
} |
|
|
} |
|
|
}, [open]); |
|
|
}, [open]); |
|
|
|
|
|
|
|
@ -74,7 +74,6 @@ const MdwMessage = () => { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
const typeHandlerChange = (value) => { |
|
|
const typeHandlerChange = (value) => { |
|
|
console.log(value) |
|
|
|
|
|
setTemplateType(value) |
|
|
setTemplateType(value) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|