sync:微信公众号网页授权登录,自动获取登录入口的准确路径 https://gitee.com/sheepjs/shopro-uniapp/commit/7a8298aeede8d7ae4b1ca262169e1c62177bca9a

This commit is contained in:
YunaiV
2025-04-28 00:23:33 +08:00
parent da9588c263
commit 4b3c699270
+1 -1
View File
@@ -638,7 +638,7 @@ function pages() {
export function getRootUrl() {
let url = '';
// #ifdef H5
url = location.origin + '/';
url = location.origin + location.pathname;
if (location.hash !== '') {
url += '#/';