ztxkutils 2.10.66-1 → 2.10.66-2
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
@@ -276,6 +276,8 @@ function batchPreviewFile(fileUrl, fileId, otherOption) {
|
|
276
276
|
* @param {string} fileType 文件类型
|
277
277
|
*/
|
278
278
|
function createOriginalUrl(fileUrl, fileId, otherOption) {
|
279
|
+
// 给附件id加密
|
280
|
+
fileId = encodeURIComponent(crypto.encrypt(fileId));
|
279
281
|
var token = getToken() || (otherOption === null || otherOption === void 0 ? void 0 : otherOption.authTOken);
|
280
282
|
var titleName = dangerouslySetXss(otherOption === null || otherOption === void 0 ? void 0 : otherOption.titleName);
|
281
283
|
try {
|