Răsfoiți Sursa

fix: 修复默认值判断

zhangyuhan 3 ani în urmă
părinte
comite
cbad9a57ca

+ 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({