From f6fe3fb67d955e9272a361bc20df198ca0642e47 Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Fri, 13 Dec 2019 11:11:45 +0800 Subject: [PATCH] =?UTF-8?q?jssdk=20=E7=94=A8=E6=B3=95=E4=B9=9F=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E4=BC=98=E5=8C=96=20normalizeLink?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/embed.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/embed.tsx b/examples/embed.tsx index 9bdad433..1b3df9ed 100644 --- a/examples/embed.tsx +++ b/examples/embed.tsx @@ -51,7 +51,7 @@ export function embed( ? to.substring(0, idx2) : to; let search = ~idx ? to.substring(idx, ~idx2 ? idx2 : undefined) : ''; - let hash = ~idx2 ? to.substring(idx2) : ''; + let hash = ~idx2 ? to.substring(idx2) : location.hash; if (!pathname) { pathname = location.pathname;