king
2022-04-13 b63b085814103cabe989d9600bc925559cc6d56d
src/views/mobdesign/index.jsx
@@ -864,7 +864,7 @@
          children: []
        }
        if (item.type === 'topbar' || item.type === 'login' || item.type === 'navbar') {
        if (item.type === 'topbar' || item.type === 'login' || item.type === 'navbar' || (item.type === 'menubar' && item.subtype === 'commonbar')) {
          return null
        } else if (item.type === 'tabs') {
          let tabs = []
@@ -1369,7 +1369,7 @@
  }
  verifyConfig = (show) => {
    const { config, viewType } = this.state
    const { config } = this.state
    let error = ''
    let searchSum = 0
    let swipes = []
@@ -1437,9 +1437,9 @@
    check(config.components)
    if (!error && viewType === 'userbind' && config.components.filter(item => item.type === 'login').length === 0) {
      error = '用户绑定页面必须添加登录。'
    }
    // if (!error && viewType === 'userbind' && config.components.filter(item => item.type === 'login').length === 0) {
    //   error = '用户绑定页面必须添加登录。'
    // }
    if (!error && searchSum > 1) {
      error = '搜索组件与导航栏的搜索功能不可同时使用。'