diff --git a/devui/anchor/src/d-anchor.ts b/devui/anchor/src/d-anchor.ts index 5f76e8ced1012c4f3f02096e5be54e79eb27b6de..c594a4524fb4d3be2470eb9881e21a8709c3e92b 100644 --- a/devui/anchor/src/d-anchor.ts +++ b/devui/anchor/src/d-anchor.ts @@ -20,9 +20,6 @@ export default { el.setAttribute('name',binding.value); el.onclick = e => { hightLightFn(binding.value); - - const classList = document.getElementById((e.target as HTMLElement).getAttribute('name')).classList; - console.log(classList) } } diff --git a/devui/anchor/src/util.ts b/devui/anchor/src/util.ts index 868446b36c41b81e945e1166745a1ac8579876e9..3ddbbece992f74ab8556c5e63a35a74d7968b7eb 100644 --- a/devui/anchor/src/util.ts +++ b/devui/anchor/src/util.ts @@ -129,7 +129,7 @@ function activateLink(hash:string | boolean):void { } if (!scollFlag) { - hash ? hightLightFn((hash as string).split('#')[1] ) : console.log(hash) + hash && hightLightFn((hash as string).split('#')[1] ) }else { hightLightFn(hashName) }