jssdk 用法也需要优化 normalizeLink

This commit is contained in:
liaoxuezhi 2019-12-13 11:11:45 +08:00
parent efee0a06d0
commit f6fe3fb67d
1 changed files with 1 additions and 1 deletions

View File

@ -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;