fix: 系统设置 邮件设置 不能设置后缀

This commit is contained in:
feng
2023-09-27 14:37:46 +08:00
committed by Bryan
parent 063dc9f8e1
commit 071822e665

View File

@@ -99,18 +99,14 @@ export default {
}
],
cleanFormValue(data) {
const submitValue = {}
submitValue['EMAIL_RECIPIENT'] = data['EMAIL_RECIPIENT']
submitValue['EMAIL_FROM'] = data['EMAIL_FROM']
submitValue['EMAIL_SUBJECT_PREFIX'] = data['EMAIL_SUBJECT_PREFIX']
Object.keys(submitValue).forEach(
Object.keys(data).forEach(
function(key) {
if (submitValue[key] === null) {
delete submitValue[key]
if (data[key] === null) {
delete data[key]
}
}
)
return submitValue
return data
},
submitMethod() {
return 'patch'