ztxkutils 2.10.34 → 2.10.35
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.
- package/dist/fileOperation.js +2 -0
- package/package.json +1 -1
package/dist/fileOperation.js
CHANGED
|
@@ -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 {
|