mirror of
https://github.com/TopVitamin/static-nav.git
synced 2026-03-21 01:02:45 +08:00
feat: 窗口已打开仅刷新否则新开
This commit is contained in:
@@ -253,11 +253,12 @@ $(function () {
|
||||
|
||||
function openSearch(keyword) {
|
||||
var type = getSeachType();
|
||||
console.log('type', type)
|
||||
var baseUrl = search_types.find(function (item) {
|
||||
return item.type === type;
|
||||
});
|
||||
if (baseUrl && keyword) {
|
||||
window.open(baseUrl.url + keyword);
|
||||
window.open(baseUrl.url + keyword, keyword);
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user