mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 19:35:24 +00:00
Compare commits
2 Commits
v4.10.14-l
...
v3.7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ca193969b | ||
|
|
d7cb5ab51c |
@@ -120,7 +120,6 @@ export default {
|
||||
},
|
||||
async mounted() {
|
||||
await this.getUrlMeta()
|
||||
await this.handleFieldChange()
|
||||
},
|
||||
methods: {
|
||||
async getUrlMeta() {
|
||||
|
||||
@@ -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