From 654b85eba090fbcf53ce2cafd414c95d40c56a27 Mon Sep 17 00:00:00 2001 From: linyunqi Date: Sun, 22 Jun 2025 15:55:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BE=AE=E4=BF=A1=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E4=B8=8B=E8=8E=B7=E5=8F=96=E5=AE=8C=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E8=B7=B3=E8=BD=AC=E7=9A=84=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=99=BB=E5=BD=95&=E7=BB=91=E5=AE=9A=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sheep/helper/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sheep/helper/index.js b/sheep/helper/index.js index 328949ad..99ea1582 100644 --- a/sheep/helper/index.js +++ b/sheep/helper/index.js @@ -631,10 +631,13 @@ function pages() { export function getRootUrl() { let url = ''; // #ifdef H5 - url = location.origin + location.pathname; + url = location.origin; + // + location.pathname; if (location.hash !== '') { url += '#/'; + } else { + url += '/'; } // #endif return url;