@antscorp/antsomi-ui 1.3.5-beta.240 → 1.3.5-beta.241
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/es/utils/common.js +7 -2
- package/package.json +1 -1
package/es/utils/common.js
CHANGED
|
@@ -481,8 +481,13 @@ export const getUrlNoCache = (url = '', cacheValue = 0) => {
|
|
|
481
481
|
urlNoCache = url;
|
|
482
482
|
}
|
|
483
483
|
else {
|
|
484
|
-
|
|
485
|
-
|
|
484
|
+
try {
|
|
485
|
+
const newUrl = new URL(url);
|
|
486
|
+
newUrl.searchParams.append('nocache', `${cacheValue}`);
|
|
487
|
+
}
|
|
488
|
+
catch (error) {
|
|
489
|
+
urlNoCache = url;
|
|
490
|
+
}
|
|
486
491
|
}
|
|
487
492
|
return urlNoCache;
|
|
488
493
|
};
|