mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 01:11:07 +00:00
fix: 修复登录限制提交报错问题
This commit is contained in:
@@ -73,11 +73,11 @@ export default {
|
||||
cleanFormValue(value) {
|
||||
const ipBlackList = value.SECURITY_LOGIN_IP_BLACK_LIST
|
||||
const ipWhiltList = value.SECURITY_LOGIN_IP_WHITE_LIST
|
||||
if (!Array.isArray(ipBlackList)) {
|
||||
value.SECURITY_LOGIN_IP_BLACK_LIST = ipBlackList ? ipBlackList.split(',') : []
|
||||
if (Array.isArray(ipBlackList)) {
|
||||
value.SECURITY_LOGIN_IP_BLACK_LIST = ipBlackList.filter(Boolean)
|
||||
}
|
||||
if (!Array.isArray(ipWhiltList)) {
|
||||
value.SECURITY_LOGIN_IP_WHITE_LIST = ipWhiltList ? ipWhiltList.split(',') : []
|
||||
if (Array.isArray(ipWhiltList)) {
|
||||
value.SECURITY_LOGIN_IP_WHITE_LIST = ipWhiltList.filter(Boolean)
|
||||
}
|
||||
return value
|
||||
},
|
||||
|
Reference in New Issue
Block a user