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.
- package/dist/fileOperation.js +6 -4
- package/package.json +1 -1
package/dist/fileOperation.js
CHANGED
|
@@ -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 +
|
|
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 +
|
|
285
|
+
return (_fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token +
|
|
286
|
+
(officePreviewType ? "&officePreviewType=" + officePreviewType : ''));
|
|
285
287
|
}
|
|
286
288
|
}
|
|
287
289
|
/**
|