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