From 8ca8ab63548c2ad44fd5361c08a534fa9d25c8a4 Mon Sep 17 00:00:00 2001 From: chenjiajian <798095202@qq.com> Date: Fri, 4 Dec 2020 11:12:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(router):=20=E4=BF=AE=E5=A4=8D=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E8=B7=AF=E7=94=B1=E5=8F=82=E6=95=B0=E6=9C=AA=E8=A2=AB?= =?UTF-8?q?=E4=BC=A0=E9=80=92=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-router/src/router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/taro-router/src/router.ts b/packages/taro-router/src/router.ts index 0927d8ecde37..f43827bcb9f4 100644 --- a/packages/taro-router/src/router.ts +++ b/packages/taro-router/src/router.ts @@ -167,7 +167,7 @@ export function createRouter ( } if (history.location.pathname === '/') { - history.replace(routes[0].path as string) + history.replace(routes[0].path as string + history.location.search) } render(history.location, 'PUSH')