isdata-customer-sdk 0.1.34 → 0.1.35
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/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +4 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -5532,6 +5532,10 @@ const getUrlParamValue = (urlStr, paramName) => {
|
|
|
5532
5532
|
try {
|
|
5533
5533
|
const url = new URL(urlStr);
|
|
5534
5534
|
const value = url.searchParams.get(paramName);
|
|
5535
|
+
// 如果参数值包含#,则只返回#之前的部分
|
|
5536
|
+
if (value.indexOf("#") !== -1) {
|
|
5537
|
+
return value.split("#")[0];
|
|
5538
|
+
}
|
|
5535
5539
|
return value;
|
|
5536
5540
|
} catch (err) {
|
|
5537
5541
|
console.error('URL 格式错误:', err);
|