jssdk 用法也需要优化 normalizeLink

This commit is contained in:
liaoxuezhi 2019-12-13 11:11:45 +08:00
parent dfe25f8ae5
commit c6fcd6d031

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;