king
2021-07-30 f6a1ab6a58215cf7546976a86eb6face1a7be32f
src/views/appmanage/submutilform/index.jsx
@@ -5,7 +5,7 @@
import asyncComponent from '@/utils/asyncComponent'
import './index.scss'
const FileUpload = asyncComponent(() => import('@/tabviews/zshare/fileupload'))
const SourceComponent = asyncComponent(() => import('@/menu/components/share/sourcecomponent'))
class MainSearch extends Component {
  static propTpyes = {
@@ -73,12 +73,6 @@
        xs: { span: 24 },
        sm: { span: 16 }
      }
    }
    let file = ''
    if (type === 'edit' && card && card.favicon) {
      file = card.favicon
    }
    return (
@@ -202,13 +196,10 @@
          <Col span={12}>
            <Form.Item label="图标">
              {getFieldDecorator('favicon', {
                initialValue: file
              })(<FileUpload config={{
                initval: file,
                suffix: '.jpg,.png,.gif,.pjp,.pjpeg,.jpeg,.jfif,.webp,.ico',
                maxfile: 1,
                fileType: 'text'
              }}/>)}
                initialValue: card ? card.favicon : ''
              })(
                <SourceComponent type="picture" placement="right"/>
              )}
            </Form.Item>
          </Col>
        </Row>