king
2021-04-08 e1dd5c756a849811518d2155ebaa1ec0094f31d4
2021-04-08
5个文件已修改
51 ■■■■■ 已修改文件
src/components/header/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/menudesign/index.jsx 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mobdesign/index.jsx 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/pcdesign/index.jsx 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/header/index.jsx
@@ -414,6 +414,10 @@
          this.props.history.replace('/design')
        } else {
          if (res.message.indexOf('密码错误') > -1) {
            const input = document.getElementById('password')
            input && input.select()
          }
          this.setState({
            loginLoading: false
          })
src/tabviews/custom/index.jsx
@@ -462,7 +462,7 @@
          tab.components.forEach(comp => {
            if (comp.type === 'tabs' && comp.parentIds) {
              supIds.push(...comp.parentIds)
            } else if (comp.setting.supModule) {
            } else if (comp.setting && comp.setting.supModule) {
              supIds.push(comp.setting.supModule)
            }
          })
src/views/menudesign/index.jsx
@@ -830,8 +830,18 @@
    const { config, MenuType } = this.state
    let error = ''
    config.components.forEach(item => {
    let check = (components) => {
      components.forEach(item => {
      if (error) return
        if (item.type === 'tabs') {
          item.subtabs.forEach(tab => {
            check(tab.components)
          })
          return
        } else if (item.type === 'group') {
          check(item.components)
          return
        }
      if (['propcard', 'brafteditor', 'sandbox'].includes(item.subtype) && item.wrap.datatype === 'static') return
      if (item.setting) {
@@ -849,6 +859,9 @@
        }
      }
    })
    }
    check(config.components)
    if (show && error) {
      notification.warning({
src/views/mobdesign/index.jsx
@@ -1241,8 +1241,18 @@
    const { config } = this.state
    let error = ''
    config.components.forEach(item => {
    let check = (components) => {
      components.forEach(item => {
      if (error) return
        if (item.type === 'tabs') {
          item.subtabs.forEach(tab => {
            check(tab.components)
          })
          return
        } else if (item.type === 'group') {
          check(item.components)
          return
        }
      if (['propcard', 'brafteditor', 'sandbox'].includes(item.subtype) && item.wrap.datatype === 'static') return
      if (item.setting) {
@@ -1260,6 +1270,9 @@
        }
      }
    })
    }
    check(config.components)
    if (show && error) {
      notification.warning({
src/views/pcdesign/index.jsx
@@ -1268,8 +1268,18 @@
    const { config } = this.state
    let error = ''
    config.components.forEach(item => {
    let check = (components) => {
      components.forEach(item => {
      if (error) return
        if (item.type === 'tabs') {
          item.subtabs.forEach(tab => {
            check(tab.components)
          })
          return
        } else if (item.type === 'group') {
          check(item.components)
          return
        }
      if (['propcard', 'brafteditor', 'sandbox'].includes(item.subtype) && item.wrap.datatype === 'static') return
      if (item.setting) {
@@ -1287,6 +1297,9 @@
        }
      }
    })
    }
    check(config.components)
    if (show && error) {
      notification.warning({