mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
jssdk 用法也需要优化 normalizeLink
This commit is contained in:
parent
dfe25f8ae5
commit
c6fcd6d031
@ -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
Block a user