Browse Source

fixbug: 7788

reaper 4 years ago
parent
commit
bb8e5a8182
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/components/knowledgeExtra/AddNewRule.vue

+ 3 - 2
src/components/knowledgeExtra/AddNewRule.vue

@@ -647,13 +647,14 @@ export default {
       return str;
     },
     showMsg: function () {
+      console.log(this.ruleTermCodeStr, "???", this.msgDict);
       return (
-        this.ruleTermCodeStr.length > 1 &&
+        this.ruleTermCodeStr.length > 2 &&
         this.msgDict.indexOf(this.ruleTermCodeStr) > -1
       );
     },
     showHasSub() {
-      if (this.ruleTermCodeStr.length != 0) {
+      if (this.ruleTermCodeStr.length > 2) {
         return this.subDict.indexOf(this.ruleTermCodeStr) != -1;
       }
       return false;