sync:微信公众号网页授权登录,自动获取登录入口的准确路径 7a8298aeed

pull/132/MERGE
YunaiV 2025-04-28 00:23:33 +08:00
parent da9588c263
commit 4b3c699270
1 changed files with 1 additions and 1 deletions

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 += '#/';