ztxkutils 10.0.12 → 10.0.13

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.
@@ -213,10 +213,11 @@ function previewFile(fileUrl, fileId, otherOption) {
213
213
  titleName = suffixTitleName
214
214
  ? preTitleName + "." + suffixTitleName
215
215
  : preTitleName;
216
- window.open(_fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + "&titleName=" + encodeURIComponent(titleName) + officePreviewType ? "&officePreviewType=" + officePreviewType : '');
216
+ window.open(_fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + "&titleName=" + encodeURIComponent(titleName) + (officePreviewType ? "&officePreviewType=" + officePreviewType : ''));
217
217
  }
218
218
  else {
219
- window.open(fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + officePreviewType ? "&officePreviewType=" + officePreviewType : '');
219
+ window.open(fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token +
220
+ (officePreviewType ? "&officePreviewType=" + officePreviewType : ''));
220
221
  }
221
222
  }
222
223
  /**
@@ -278,10 +279,11 @@ function createOriginalUrl(fileUrl, fileId, otherOption) {
278
279
  titleName = suffixTitleName
279
280
  ? preTitleName + "." + suffixTitleName
280
281
  : preTitleName;
281
- return _fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + "&titleName=" + encodeURIComponent(titleName) + officePreviewType ? "&officePreviewType=" + officePreviewType : '';
282
+ return (_fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + "&titleName=" + encodeURIComponent(titleName) + (officePreviewType ? "&officePreviewType=" + officePreviewType : ''));
282
283
  }
283
284
  else {
284
- return _fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + officePreviewType ? "&officePreviewType=" + officePreviewType : '';
285
+ return (_fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token +
286
+ (officePreviewType ? "&officePreviewType=" + officePreviewType : ''));
285
287
  }
286
288
  }
287
289
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "10.0.12",
3
+ "version": "10.0.13",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",