MaiXinRong hai 1 ano
pai
achega
d693e9bda3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
                     }