king
2025-03-23 adfd23e41ea5778a69e2313c8a2efb8396638709
src/menu/datasource/index.jsx
@@ -93,13 +93,13 @@
    } else if (config.type === 'interface') {
      menu.components.forEach(item => {
        if (item.type !== 'search') return
        search = item.search
        search = item.search || []
      })
    } else {
      let filterComponent = (box, mainSearch) => {
        box.components.forEach(item => {
          if (item.type !== 'search') return
          mainSearch = item.search
          mainSearch = item.search || []
        })
        let has = false
        box.components.forEach(item => {
@@ -136,10 +136,10 @@
  }
  verifySubmit = () => {
    const { config } = this.props
    const { config, mainSearch } = this.props
    this.setState({loading: true})
    this.verifyRef.submitDataSource().then((res, hasMSearch) => {
    this.verifyRef.submitDataSource().then((res) => {
      let MenuType = sessionStorage.getItem('MenuType')
@@ -340,7 +340,7 @@
        }, 150)
      }
      if (config.type === 'interface' && res.setting && res.setting.useMSearch === 'true' && !hasMSearch) {
      if (config.type === 'interface' && res.setting && res.setting.useMSearch === 'true' && mainSearch.length === 0) {
        Modal.warning({
          title: '数据源中使用了外部搜索,但搜索条件尚未添加!',
          centered: true