zmdms-utils 0.0.76 → 0.0.77
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/es/file.js +1 -1
- package/package.json +1 -1
- package/src/file.ts +1 -1
package/dist/es/file.js
CHANGED
|
@@ -293,7 +293,7 @@ function createOriginalLink(fileId, fileName, options) {
|
|
|
293
293
|
return "".concat(apiBaseURL, "/api/cicoms-resource/attach/filePreview?attachId=").concat(fileId, "&").concat(TOKEN_KEY, "=").concat(token);
|
|
294
294
|
}
|
|
295
295
|
if (isZmdmsFileService) {
|
|
296
|
-
fileId = encodeFileId(fileId,
|
|
296
|
+
fileId = encodeFileId(fileId, 1);
|
|
297
297
|
}
|
|
298
298
|
return ("".concat(apiBaseURL, "/attchPreview?attachId=").concat(fileId, "&").concat(TOKEN_KEY, "=").concat(token, "&officePreviewType=pdf") +
|
|
299
299
|
(fileName ? "&titleName=".concat(encodeURIComponent(previewFileName)) : ""));
|
package/package.json
CHANGED
package/src/file.ts
CHANGED
|
@@ -360,7 +360,7 @@ export function createOriginalLink(
|
|
|
360
360
|
return `${apiBaseURL}/api/cicoms-resource/attach/filePreview?attachId=${fileId}&${TOKEN_KEY}=${token}`;
|
|
361
361
|
}
|
|
362
362
|
if (isZmdmsFileService) {
|
|
363
|
-
fileId = encodeFileId(fileId,
|
|
363
|
+
fileId = encodeFileId(fileId, 1);
|
|
364
364
|
}
|
|
365
365
|
return (
|
|
366
366
|
`${apiBaseURL}/attchPreview?attachId=${fileId}&${TOKEN_KEY}=${token}&officePreviewType=pdf` +
|