diff --git a/src/pages/doc/DocPageEventManager.ts b/src/pages/doc/DocPageEventManager.ts index 194878970d..04203eb147 100644 --- a/src/pages/doc/DocPageEventManager.ts +++ b/src/pages/doc/DocPageEventManager.ts @@ -69,39 +69,6 @@ class DocPageEventManager { return false } }; - if (!this.isMobile) { - const action = (e: MouseEvent) => { - const originLink = a.getAttribute('origin-link')!; - (this.getRef('linkPopover') as InstanceType).show(originLink, e.clientX, e.clientY); - e.preventDefault(); - e.stopPropagation(); - } - a.addEventListener('contextmenu', (e: MouseEvent) => { - action(e) - return false; - }); - a.addEventListener('mouseover', (e: MouseEvent) => { - action(e) - return false - }) - }else { - a.addEventListener('click', e => { - e.stopPropagation() - e.preventDefault() - }) - const originLink = a.getAttribute('origin-link')!; - TouchUtils.onPress(a, (duration) => { - if (duration <= 500) { - this.docPageInstance.$router.push(a.getAttribute('href')!.replace('#/', '')) - console.log('click') - return; - } - if (duration > 500) { - (this.getRef('linkPopover') as InstanceType).show(originLink, window.innerWidth / 10, 100); - return - } - }) - } } // 外部链接 for(let i = 0;i < outterLinkList.length;i++){