Unverified Commit 3a3ce5df authored by 老广's avatar 老广 Committed by GitHub

Merge pull request #65 from jumpserver/dev

[Bugfix] 修复luna搜索的问题
parents 363fe2e1 0c9ecd8e
......@@ -268,7 +268,7 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
if (!zTreeObj) {
return null;
}
const _keywords = this.query.toLowerCase();
let _keywords = this.query;
const nodes = zTreeObj.transformToArray(zTreeObj.getNodes());
if (!_keywords) {
if (this.hiddenNodes) {
......@@ -285,6 +285,7 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
}
return null;
}
_keywords = _keywords.toLowerCase();
let shouldShow = [];
const matchedNodes = zTreeObj.getNodesByFilter(function(node) {
if (node.meta.type === 'asset') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment