Fix:旅居分享问题

This commit is contained in:
linxi
2025-12-10 18:23:12 +08:00
parent eaa36dcf44
commit 1f4ea5c0c8
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;
}