king
2023-08-17 c7aece35a62b6e91fd98a625bf0e53f64bfbd18d
src/mob/modulesource/index.jsx
@@ -16,7 +16,7 @@
  }
  UNSAFE_componentWillMount () {
    const { components } = this.props
    const { components, viewType } = this.props
    let options = []
    
    if (components) {
@@ -27,6 +27,10 @@
      if (adapters.indexOf('wxmini') === -1) {
        options = options.filter(item => item.adapter !== 'mini')
      }
    }
    if (viewType === 'popview') {
      options = options.filter(item => !['topbar', 'navbar', 'login', 'officialAccount'].includes(item.component))
    }
    this.setState({
@@ -52,7 +56,7 @@
      content: '',
      onOk() {
        return new Promise(resolve => {
          Api.getSystemConfig({
          Api.getCloudConfig({
            func: 's_custom_components_adduptdel',
            c_id: item.uuid,
            images: '',