Skip to content

Commit

Permalink
fix: 系统设置 邮件设置 不能设置后缀
Browse files Browse the repository at this point in the history
  • Loading branch information
feng626 authored and BaiJiangJie committed Sep 27, 2023
1 parent b54a954 commit d7cb5ab
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/views/settings/Msg/Email/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit d7cb5ab

Please sign in to comment.