king
2023-07-03 3b1c5118e37500a26021adb8a6c1c11b741d7bbc
src/tabviews/custom/index.jsx
@@ -359,6 +359,13 @@
          return false
        }
        if (item.setting.supModule) {
          let pid = item.setting.supModule.pop()
          item.setting.supModule = pid || ''
        } else {
          item.setting.supModule = ''
        }
        item.subtabs = item.subtabs.filter(tab => {
          if (
            tab.blacklist && tab.blacklist.length > 0 &&
@@ -368,12 +375,19 @@
          } else if (tab.hide === 'true') {
            return false
          }
          return true
        })
        if (item.setting.supModule) {
          let pid = item.setting.supModule.pop()
          item.setting.supModule = pid || ''
            if (tab.controlVal === '@pass@') {
              tab.$pass = true
            } else if (/,/ig.test(tab.controlVal)) {
              tab.controlVals = tab.controlVal.split(',')
            } else {
              tab.controlVals = [(tab.controlVal || '')]
            }
          }
          return true
        })
          if (item.setting.supModule) {
            item.setting.controlField = item.setting.controlField.toLowerCase()
@@ -388,15 +402,10 @@
              })
  
              item.subtabs = item.subtabs.filter(tab => {
                if (tab.controlVal === val) {
                  return false
                } else if (/,/ig.test(tab.controlVal)) {
                  return !tab.controlVal.split(',').includes(val)
                }
              if (tab.$pass) return true
      
                return true
              return !tab.controlVals.includes(val)
              })
            }
          }
        }