ztxkutils 2.10.34 → 2.10.35

Sign up to get free protection for your applications and to get access to all the features.
@@ -205,6 +205,7 @@ function previewFile(fileUrl, fileId, otherOption) {
205
205
  ? fileUrl.slice(0, fileUrl.length - 1)
206
206
  : fileUrl;
207
207
  if (titleName) {
208
+ titleName = titleName + "-" + Date.now();
208
209
  window.open(_fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + "&titleName=" + encodeURIComponent(titleName) + "&officePreviewType=pdf");
209
210
  }
210
211
  else {
@@ -262,6 +263,7 @@ function createOriginalUrl(fileUrl, fileId, otherOption) {
262
263
  ? fileUrl.slice(0, fileUrl.length - 1)
263
264
  : fileUrl;
264
265
  if (titleName) {
266
+ titleName = titleName + "-" + Date.now();
265
267
  return _fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + "&titleName=" + encodeURIComponent(titleName) + "&officePreviewType=pdf";
266
268
  }
267
269
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.10.34",
3
+ "version": "2.10.35",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",