ztxkutils 2.8.3-1 → 2.8.3-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 -2
- package/package.json +1 -1
package/dist/fileOperation.js
CHANGED
@@ -136,7 +136,7 @@ function createPublicDownloadUrl(apiUrl, fileId) {
|
|
136
136
|
*/
|
137
137
|
function previewFile(fileUrl, fileId, otherOption) {
|
138
138
|
// 给附件id加密
|
139
|
-
fileId =
|
139
|
+
fileId = encodeFileIdByPreview(fileId);
|
140
140
|
var token = '';
|
141
141
|
if (typeof otherOption === 'object') {
|
142
142
|
token = getToken() || (otherOption === null || otherOption === void 0 ? void 0 : otherOption.authToken);
|
@@ -163,7 +163,7 @@ function previewFile(fileUrl, fileId, otherOption) {
|
|
163
163
|
*/
|
164
164
|
function createOriginalUrl(fileUrl, fileId, otherOption) {
|
165
165
|
// 给附件id加密
|
166
|
-
fileId =
|
166
|
+
fileId = encodeFileIdByPreview(fileId);
|
167
167
|
var token = getToken() || (otherOption === null || otherOption === void 0 ? void 0 : otherOption.authTOken);
|
168
168
|
var titleName = otherOption === null || otherOption === void 0 ? void 0 : otherOption.titleName;
|
169
169
|
var _fileUrl = fileUrl.endsWith('/')
|