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