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