Commit 0c9ecd8e authored by ibuler's avatar ibuler

[Bugfix] 修复luna搜索的问题

parent 2f5c7de0
......@@ -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