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 CHANGED
@@ -5522,6 +5522,10 @@ const getUrlParamValue = (urlStr, paramName) => {
5522
5522
  try {
5523
5523
  const url = new URL(urlStr);
5524
5524
  const value = url.searchParams.get(paramName);
5525
+ // 如果参数值包含#,则只返回#之前的部分
5526
+ if (value.indexOf("#") !== -1) {
5527
+ return value.split("#")[0];
5528
+ }
5525
5529
  return value;
5526
5530
  } catch (err) {
5527
5531
  console.error('URL 格式错误:', err);