Merge pull request #24 from MaizaLin/fix_bug

修复微信环境下获取完用户信息跳转的用户登录&绑定地址
pull/159/MERGE
芋道源码 2025-07-20 15:37:01 +08:00 committed by GitHub
commit 4a26132b8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -631,10 +631,13 @@ function pages() {
export function getRootUrl() {
let url = '';
// #ifdef H5
url = location.origin + location.pathname;
url = location.origin;
// + location.pathname;
if (location.hash !== '') {
url += '#/';
} else {
url += '/';
}
// #endif
return url;