zhouna 4 years ago
parent
commit
2fc6a0117b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/js/searchStaticList.js

+ 5 - 1
src/js/searchStaticList.js

@@ -111,7 +111,11 @@ function renderList(tabList){
     $('.resultItem').click(function(){
     $('.resultItem').click(function(){
         let name = $(this).attr('data-name')
         let name = $(this).attr('data-name')
         let type = $(this).attr('data-type')
         let type = $(this).attr('data-type')
-        window.open(`./staticInfo.html?name=${name}&type=${type}`);
+        if(window.opener){
+            openNewWin(`./staticInfo.html?name=${name}&type=${type}`);
+        }else{
+            window.open(`./staticInfo.html?name=${name}&type=${type}`);
+        }
     })
     })
 }
 }
 function initData(){
 function initData(){