diff --git a/src/plugins/search/search.js b/src/plugins/search/search.js index fcdbd56..c269e86 100644 --- a/src/plugins/search/search.js +++ b/src/plugins/search/search.js @@ -73,7 +73,7 @@ export function search (keywords) { data = data.concat(Object.keys(INDEXS[key]).map(page => INDEXS[key][page])) }) - keywords = keywords.trim().split(/[\s\-\,\\/]+/) + keywords = [].concat(keywords, keywords.trim().split(/[\s\-\,\\/]+/)) for (let i = 0; i < data.length; i++) { const post = data[i]