Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
luna
Commits
3a3ce5df
Unverified
Commit
3a3ce5df
authored
May 08, 2019
by
老广
Committed by
GitHub
May 08, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #65 from jumpserver/dev
[Bugfix] 修复luna搜索的问题
parents
363fe2e1
0c9ecd8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
asset-tree.component.ts
src/app/elements/asset-tree/asset-tree.component.ts
+2
-1
No files found.
src/app/elements/asset-tree/asset-tree.component.ts
View file @
3a3ce5df
...
...
@@ -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'
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment