easy3wui 1.5.60 → 1.5.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -210,7 +210,7 @@ var Easy3wUpload = function (_Component) {
210
210
  authToken: authToken,
211
211
  ENCFlag: ENCFlag,
212
212
  sign: '2959f1aea8db0f7fbba61f0f8474d0ef',
213
- data: JSON.stringify(sendData),
213
+ data: JSON.stringify(sendData || {}),
214
214
  easy3wRootOrg: _comonConfig.easy3wRootOrg || ''
215
215
  }
216
216
  };
@@ -538,11 +538,12 @@ var _initialiseProps = function _initialiseProps() {
538
538
  urlDownloadFile = _props3.urlDownloadFile,
539
539
  uploadDoneCallback = _props3.uploadDoneCallback;
540
540
 
541
+ var sendDataNew = sendData || {};
541
542
  formData.append('sendTime', new Date().getTime());
542
543
  formData.append('appType', '01');
543
544
  formData.append('authToken', authToken);
544
545
  formData.append('devId', '');
545
- formData.append('data', JSON.stringify((0, _extends3['default'])({ uploadParams: uploadParams }, sendData)));
546
+ formData.append('data', JSON.stringify((0, _extends3['default'])({ uploadParams: uploadParams }, sendDataNew)));
546
547
  formData.append('sign', '2959f1aea8db0f7fbba61f0f8474d0ef');
547
548
  formData.append('easy3wRootOrg', _comonConfig.easy3wRootOrg || '');
548
549
 
@@ -684,6 +685,7 @@ var _initialiseProps = function _initialiseProps() {
684
685
  urlUpBigFileGeneral = _props4.urlUpBigFileGeneral,
685
686
  urlDownloadFile = _props4.urlDownloadFile;
686
687
 
688
+ var sendDataNew = sendData || {};
687
689
  var chunkSize = 0;
688
690
  if (typeof limitChunkSize === 'string') {
689
691
  if (limitChunkSize.toLowerCase().indexOf('k') !== -1) {
@@ -730,7 +732,7 @@ var _initialiseProps = function _initialiseProps() {
730
732
  var formData = new FormData();
731
733
  var authToken = Easy3wGetCookie('userToken') || '40572da23bee5fd59cc5b6c8d8bfb36d';
732
734
  var blob = new Blob([e.target.result], { type: 'application/octet-stream' });
733
- var postParam = (0, _extends3['default'])({ fileInfo: file }, sendData, { currentSize: end, startSize: start, chunkMD5: chunkMD5 });
735
+ var postParam = (0, _extends3['default'])({ fileInfo: file }, sendDataNew, { currentSize: end, startSize: start, chunkMD5: chunkMD5 });
734
736
  formData.append('chunk', blob);
735
737
  formData.append('sendTime', new Date().getTime());
736
738
  formData.append('appType', '01');
@@ -215,7 +215,7 @@ var Easy3wUploadM = function (_Component) {
215
215
  authToken: authToken,
216
216
  ENCFlag: ENCFlag,
217
217
  sign: '2959f1aea8db0f7fbba61f0f8474d0ef',
218
- data: JSON.stringify(sendData),
218
+ data: JSON.stringify(sendData || {}),
219
219
  easy3wRootOrg: _comonConfig.easy3wRootOrg || ''
220
220
  }
221
221
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.5.60",
3
+ "version": "1.5.61",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",