mirror of
https://gitee.com/yudaocode/yudao-mall-uniapp.git
synced 2025-12-30 01:32:26 +00:00
Merge pull request #24 from MaizaLin/fix_bug
修复微信环境下获取完用户信息跳转的用户登录&绑定地址
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user