king
2021-09-09 8753aeefb8e3a4463be9d76328c42c1b4caad90a
src/menu/components/share/sourcecomponent/inputform/index.jsx
@@ -48,7 +48,7 @@
      if (_form && _form.focus) {
        _form.focus()
      }
    } catch {}
    } catch (e) {}
  }
  shouldComponentUpdate (nextProps, nextState) {
@@ -63,14 +63,14 @@
      let videos = sessionStorage.getItem('app_videos')
      try {
        originlist = JSON.parse(videos)
      } catch {
      } catch (e) {
        originlist = []
      }
    } else {
      let pictures = sessionStorage.getItem('app_pictures')
      try {
        originlist = JSON.parse(pictures)
      } catch {
      } catch (e) {
        originlist = []
      }
    }
@@ -167,7 +167,7 @@
        {keyword === 'upload' ? <Form.Item label="上传" labelCol={{xs: { span: 24 }, sm: { span: 4 }}} wrapperCol={{xs: { span: 24 }, sm: { span: 20 }}}>
          <FileUpload config={{
            initval: '',
            suffix: type === 'video' ? '.mp4,.webm,.ogg' : '.jpg,.png,.gif,.pjp,.pjpeg,.jpeg,.jfif,.webp',
            suffix: type === 'video' ? '.mp4,.webm,.ogg' : '.jpg,.png,.gif,.pjp,.pjpeg,.jpeg,.jfif,.webp,.ico',
            maxfile: 1,
            fileType: type === 'video' ? 'text' : 'picture'
          }} onChange={this.changeFile} />