|
@@ -160,7 +160,7 @@ async function getDataByCode(code, data) {
|
|
|
}
|
|
|
}
|
|
|
//没有完全匹配的,分词匹配关键字
|
|
|
- if (items.length === 0){
|
|
|
+ if (items.length === 0 && data.keyWord){
|
|
|
let nameArray = nodejieba.cut(data.keyWord);
|
|
|
nameArray = cusSegment(nameArray,data.keyWord);
|
|
|
let result = getMatchPrice(allItems,nameArray);
|