mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
perf: 隐藏设置 terminal_theme_name
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
:initial="object"
|
||||
:submit-method="submitMethod"
|
||||
:url="url"
|
||||
:clean-form-value="cleanFormValue"
|
||||
class="password-update"
|
||||
/>
|
||||
</IBox>
|
||||
@@ -61,7 +62,9 @@ export default {
|
||||
for (const k in this.remoteMeta) {
|
||||
if (this.remoteMeta.hasOwnProperty(k)) {
|
||||
fields.push([this.remoteMeta[k].label, [k]])
|
||||
fieldsMeta[k] = { 'fields': Object.keys(this.remoteMeta[k].children) }
|
||||
fieldsMeta[k] = { 'fields': Object.keys(this.remoteMeta[k].children).filter(
|
||||
// todo: remove this when we have a better solution
|
||||
(key) => key !== 'terminal_theme_name') }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,6 +86,13 @@ export default {
|
||||
},
|
||||
submitMethod() {
|
||||
return 'patch'
|
||||
},
|
||||
cleanFormValue(value) {
|
||||
if (this.category === 'koko') {
|
||||
// todo: remove this when we have a better solution
|
||||
delete value['basic']['terminal_theme_name']
|
||||
}
|
||||
return value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user