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) { cleanFormValue(data) {
const submitValue = {} Object.keys(data).forEach(
submitValue['EMAIL_RECIPIENT'] = data['EMAIL_RECIPIENT']
submitValue['EMAIL_FROM'] = data['EMAIL_FROM']
submitValue['EMAIL_SUBJECT_PREFIX'] = data['EMAIL_SUBJECT_PREFIX']
Object.keys(submitValue).forEach(
function(key) { function(key) {
if (submitValue[key] === null) { if (data[key] === null) {
delete submitValue[key] delete data[key]
} }
} }
) )
return submitValue return data
}, },
submitMethod() { submitMethod() {
return 'patch' return 'patch'