Quellcode durchsuchen

修改路由模式为history时,微信登录白屏bug问题

kele vor 2 Jahren
Ursprung
Commit
cb7fa7d646
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      sheep/helper/index.js

+ 1 - 1
sheep/helper/index.js

@@ -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 += '#/';