pull/159/MERGE v2025.08
YunaiV 2025-07-31 23:46:26 +08:00
commit 5eabbdc365
1 changed files with 4 additions and 1 deletions

View File

@ -631,10 +631,13 @@ function pages() {
export function getRootUrl() { export function getRootUrl() {
let url = ''; let url = '';
// #ifdef H5 // #ifdef H5
url = location.origin + location.pathname; url = location.origin;
// + location.pathname;
if (location.hash !== '') { if (location.hash !== '') {
url += '#/'; url += '#/';
} else {
url += '/';
} }
// #endif // #endif
return url; return url;