mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-31 06:34:13 +00:00
fix: 系统设置 邮件设置 不能设置后缀
This commit is contained in:
@@ -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'
|
||||
|
Reference in New Issue
Block a user