@tarojs/runtime 4.0.0-alpha.35 → 4.0.0-alpha.36
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/runtime.esm.js
CHANGED
|
@@ -427,19 +427,11 @@ const URLSearchParams = process.env.TARO_PLATFORM === 'web' ? env.window.URLSear
|
|
|
427
427
|
for (let pairs = query.split('&'), i = 0, length = pairs.length; i < length; i++) {
|
|
428
428
|
const value = pairs[i];
|
|
429
429
|
const index = value.indexOf('=');
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
if (index > -1) {
|
|
433
|
-
appendTo(dict, decode(value.slice(0, index)), decode(value.slice(index + 1)));
|
|
434
|
-
}
|
|
435
|
-
else if (value.length) {
|
|
436
|
-
appendTo(dict, decode(value), '');
|
|
437
|
-
}
|
|
430
|
+
if (index > -1) {
|
|
431
|
+
appendTo(dict, decode(value.slice(0, index)), decode(value.slice(index + 1)));
|
|
438
432
|
}
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
console.warn(`[Taro warn] URL 参数 ${value} decode 异常`);
|
|
442
|
-
}
|
|
433
|
+
else if (value.length) {
|
|
434
|
+
appendTo(dict, decode(value), '');
|
|
443
435
|
}
|
|
444
436
|
}
|
|
445
437
|
}
|