mirror of
https://github.com/jumpserver/lina.git
synced 2025-04-27 11:10:51 +00:00
perf: user login acl time_period
This commit is contained in:
parent
56f05e09ca
commit
5766833bd2
@ -81,6 +81,13 @@ export default {
|
||||
return url
|
||||
},
|
||||
cleanFormValue(value) {
|
||||
if (
|
||||
Array.isArray(value.rules.time_period) &&
|
||||
value.rules.time_period.every(item => item.value === '')
|
||||
) {
|
||||
value.rules.time_period = []
|
||||
}
|
||||
|
||||
if (!Array.isArray(value.rules.ip_group)) {
|
||||
value.rules.ip_group = value.rules.ip_group ? value.rules.ip_group.split(',') : []
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user