perf: 隐藏设置 terminal_theme_name

This commit is contained in:
Eric
2023-10-09 17:02:56 +08:00
committed by Bryan
parent a6d7cc1215
commit c50db4089c

View File

@@ -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
}
}
}