Showing
1 changed file
with
3 additions
and
1 deletions
@@ -394,10 +394,12 @@ const _getSingehotViaResult = (args, originQuery, queryResult, type) => { | @@ -394,10 +394,12 @@ const _getSingehotViaResult = (args, originQuery, queryResult, type) => { | ||
394 | 394 | ||
395 | if (originQuery) { | 395 | if (originQuery) { |
396 | const originQueryArr = originQuery.split(' '); | 396 | const originQueryArr = originQuery.split(' '); |
397 | + let setFlag = false; | ||
397 | 398 | ||
398 | _.forEach(originQueryArr, (query, idx) => { | 399 | _.forEach(originQueryArr, (query, idx) => { |
399 | - if (query.toString() === skn.toString()) { | 400 | + if (!setFlag && query.toString() === skn.toString()) { |
400 | index = idx; | 401 | index = idx; |
402 | + setFlag = true; | ||
401 | } | 403 | } |
402 | }); | 404 | }); |
403 | } | 405 | } |
-
Please register or login to post a comment