jssdk 用法也需要优化 normalizeLink
This commit is contained in:
parent
efee0a06d0
commit
f6fe3fb67d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue