ztxkui 3.0.8 → 3.0.9

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.
@@ -287,7 +287,9 @@ var Upload = function (props) {
287
287
  console.log(err);
288
288
  }
289
289
  };
290
- var fileAction = apiBaseUrl + "/api/zmdms-resource/oss/endpoint/put-file-attach";
290
+ var fileAction = (apiBaseUrl.endsWith('/')
291
+ ? apiBaseUrl.slice(0, apiBaseUrl.length - 1)
292
+ : apiBaseUrl) + "/api/zmdms-resource/oss/endpoint/put-file-attach";
291
293
  return (React.createElement(React.Fragment, null,
292
294
  showUploadBtn && (React.createElement("div", { className: "zt-upload" },
293
295
  React.createElement(AntUpload, __assign({ className: classes, beforeUpload: beforeUpload ? beforeUpload : beforeFileUpload, onChange: onChange ? onChange : onFileChange, showUploadList: showUploadList ? showUploadList : false, fileList: fileList, multiple: multiple ? multiple : true, action: fileAction, headers: headers, data: data, method: method, onDownload: onFileDownload, onPreview: onFilePreview, onRemove: onFileRemove, openFileDialogOnClick: maxCount !== fileList.length || isDirect, maxCount: maxCount, listType: listType }, restProps), children ? (children) : !listType || listType === 'text' ? (React.createElement(Button, { type: "primary", disabled: maxCount === fileList.length || restProps.disabled },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "3.0.8",
3
+ "version": "3.0.9",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",