fix: search

This commit is contained in:
shenyu
2019-12-19 21:20:41 +08:00
parent 951d8585d1
commit 3e1c63f5bd
3 changed files with 9 additions and 12 deletions

View File

@@ -57,7 +57,7 @@
//
// 建议在移动端不初始化,其实 /search.xml 文件还挺大的,
if ($('.local-search').size() && !isMobile.any()) {
if ($('.local-search').size()) {
$.getScript('/js/search.js', function () {
searchFunc("/search.xml", 'local-search-input', 'local-search-result');
});