Fix:旅居分享问题

(cherry picked from commit 1f4ea5c0c8)
This commit is contained in:
linxi
2025-12-15 10:09:06 +08:00
committed by lifizer
parent 1710f4809c
commit 749e3901f8
6 changed files with 67 additions and 8 deletions
+2
View File
@@ -73,8 +73,10 @@ module.exports = {
},
getUrlParam(url, name) {
url = decodeURIComponent(url)
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = url.match(reg);
console.log(r);
if (r != null) return (r[2]);
return null;
}