optimize: 优化配置。
parent
41c475eab6
commit
8541462f73
|
@ -6,7 +6,8 @@ const { DynamicChoice } = require('../choice/index')
|
||||||
function mapToList (ipMap) {
|
function mapToList (ipMap) {
|
||||||
const ipList = []
|
const ipList = []
|
||||||
for (const key in ipMap) {
|
for (const key in ipMap) {
|
||||||
if (ipMap[key]) { // 配置为 ture 时才生效
|
const value = ipMap[key]
|
||||||
|
if (value && value !== 'false' && value !== '0') { // 配置为 ture 时才生效
|
||||||
ipList.push(key)
|
ipList.push(key)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue