sync:微信公众号网页授权登录,自动获取登录入口的准确路径 https://gitee.com/sheepjs/shopro-uniapp/commit/7a8298aeede8d7ae4b1ca262169e1c62177bca9a
This commit is contained in:
@@ -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 += '#/';
|
||||
|
||||
Reference in New Issue
Block a user