mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
fix: 修复2.0.1的bugs
This commit is contained in:
@@ -51,6 +51,13 @@ export default {
|
||||
}
|
||||
if (field.type === 'choice' && field.choices) {
|
||||
option.children = field.choices.map(item => {
|
||||
if (typeof (item.value) === 'boolean') {
|
||||
if (item.value) {
|
||||
return { label: item.display_name, value: 'True' }
|
||||
} else {
|
||||
return { label: item.display_name, value: 'False' }
|
||||
}
|
||||
}
|
||||
return { label: item.display_name, value: item.value }
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user