ztxkutils 2.10.34 → 2.10.35
Sign up to get free protection for your applications and to get access to all the features.
- 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 {
|