ztxkutils 2.9.11 → 2.9.12
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 +12 -2
- package/package.json +1 -1
package/dist/fileOperation.js
CHANGED
@@ -149,7 +149,12 @@ function previewFile(fileUrl, fileId, otherOption) {
|
|
149
149
|
token = getToken() || otherOption;
|
150
150
|
}
|
151
151
|
var titleName = dangerouslySetXss(otherOption === null || otherOption === void 0 ? void 0 : otherOption.titleName);
|
152
|
-
|
152
|
+
try {
|
153
|
+
titleName = titleName.replaceAll('%', '');
|
154
|
+
}
|
155
|
+
catch (err) {
|
156
|
+
console.log(err);
|
157
|
+
}
|
153
158
|
var _fileUrl = fileUrl.endsWith('/')
|
154
159
|
? fileUrl.slice(0, fileUrl.length - 1)
|
155
160
|
: fileUrl;
|
@@ -169,7 +174,12 @@ function previewFile(fileUrl, fileId, otherOption) {
|
|
169
174
|
function createOriginalUrl(fileUrl, fileId, otherOption) {
|
170
175
|
var token = getToken() || (otherOption === null || otherOption === void 0 ? void 0 : otherOption.authTOken);
|
171
176
|
var titleName = dangerouslySetXss(otherOption === null || otherOption === void 0 ? void 0 : otherOption.titleName);
|
172
|
-
|
177
|
+
try {
|
178
|
+
titleName = titleName.replaceAll('%', '');
|
179
|
+
}
|
180
|
+
catch (err) {
|
181
|
+
console.log(err);
|
182
|
+
}
|
173
183
|
var _fileUrl = fileUrl.endsWith('/')
|
174
184
|
? fileUrl.slice(0, fileUrl.length - 1)
|
175
185
|
: fileUrl;
|