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