Quellcode durchsuchen

fix: 修复默认值判断

zhangyuhan vor 3 Jahren
Ursprung
Commit
cbad9a57ca
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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({