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