修改路由模式为history时,微信登录白屏bug问题
This commit is contained in:
1 parent
2a949d1b1f
commit
cb7fa7d646
1 file changed
+1
-1
@@ -638,7 +638,7 @@ function pages() {
|
||||
export function getRootUrl() {
|
||||
let url = '';
|
||||
// #ifdef H5
|
||||
url = location.origin + location.pathname;
|
||||
url = location.origin + '/';
|
||||
|
||||
if (location.hash !== '') {
|
||||
url += '#/';
|
||||
|
||||
Reference in new issue
Block a user