소스 검색

fix: 修复默认值判断

zhangyuhan 3 년 전
부모
커밋
cbad9a57ca
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/web/staticres/common-module/collection/js/keyword-mobile.js

+ 1 - 1
src/web/staticres/common-module/collection/js/keyword-mobile.js

@@ -473,7 +473,7 @@ var keywordComponent = {
             } else {
               data.notkey = []
             }
-            if (typeof data.matchway !== 'number' || typeof data.matchway !== 'string') {
+            if (typeof data.matchway !== 'number' && typeof data.matchway !== 'string') {
               data.matchway = 0
             }
             classify.a_key.push({