diff --git a/sheep/helper/index.js b/sheep/helper/index.js index 59272f5d..531dcd56 100644 --- a/sheep/helper/index.js +++ b/sheep/helper/index.js @@ -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 += '#/';