MaiXinRong преди 1 година
родител
ревизия
d693e9bda3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/public/js/ledger.js

+ 1 - 1
app/public/js/ledger.js

@@ -3376,7 +3376,7 @@ $(document).ready(function() {
             this.searchCur = 0;
             if (keyword) {
                 for (const [i, d] of this.exprSheet.zh_tree.nodes.entries()) {
-                    if (d.code && d.code.indexOf(keyword)) {
+                    if (d.code && d.code.indexOf(keyword) >= 0) {
                         this.searchResult.push(d);
                         continue;
                     }