Browse Source

Merge pull request #40 from DouyinFE/fix_site_popconfirm_jump_whenGotoDesignDoc

fix: fix site popconfirm jump when go to design doc
代强 4 years ago
parent
commit
da8032c9ae
1 changed files with 1 additions and 9 deletions
  1. 1 9
      src/templates/toUEDUtils/toUED.ts

+ 1 - 9
src/templates/toUEDUtils/toUED.ts

@@ -19,18 +19,10 @@ const getAnotherSideUrl=(site:'design'|'main')=>{
     }
 }
 
-const changeDomain=()=>{
-    window.addEventListener("load", ()=>{
-        if(document){
-            
-        }
-    })
-}
 
 const cache={scrollHeight:null};
 
 const transContent=(site:'main'|'design')=>{
-    changeDomain();
     const url=`${getAnotherSideUrl('design')}?concisemode=true`;
     const mainSiteContentDOM= document.querySelector('.main-article') as HTMLDivElement;
     if(site==='design'){
@@ -94,7 +86,7 @@ const isHaveUedDocs=(pathName:string)=>{
 }
 
 const isJumpToDesignSite=(pathName:string)=>{
-    const components=['toast','notification'];
+    const components=['toast','notification','popconfirm'];
     if(pathName){
         const urlSplitArray=pathName.split('/').filter(v=>v);
         const componentName=urlSplitArray[urlSplitArray.length-1];