From f6a1ab6a58215cf7546976a86eb6face1a7be32f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 30 七月 2021 15:37:17 +0800 Subject: [PATCH] 2021-07-30 --- src/views/appmanage/submutilform/index.jsx | 19 +++++-------------- 1 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/views/appmanage/submutilform/index.jsx b/src/views/appmanage/submutilform/index.jsx index 137c862..3d1a936 100644 --- a/src/views/appmanage/submutilform/index.jsx +++ b/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> -- Gitblit v1.8.0