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
0c9ecd8e
Commit
0c9ecd8e
authored
May 08, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] 修复luna搜索的问题
parent
2f5c7de0
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 @
0c9ecd8e
...
@@ -268,7 +268,7 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
...
@@ -268,7 +268,7 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
if
(
!
zTreeObj
)
{
if
(
!
zTreeObj
)
{
return
null
;
return
null
;
}
}
const
_keywords
=
this
.
query
.
toLowerCase
()
;
let
_keywords
=
this
.
query
;
const
nodes
=
zTreeObj
.
transformToArray
(
zTreeObj
.
getNodes
());
const
nodes
=
zTreeObj
.
transformToArray
(
zTreeObj
.
getNodes
());
if
(
!
_keywords
)
{
if
(
!
_keywords
)
{
if
(
this
.
hiddenNodes
)
{
if
(
this
.
hiddenNodes
)
{
...
@@ -285,6 +285,7 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
...
@@ -285,6 +285,7 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
}
}
return
null
;
return
null
;
}
}
_keywords
=
_keywords
.
toLowerCase
();
let
shouldShow
=
[];
let
shouldShow
=
[];
const
matchedNodes
=
zTreeObj
.
getNodesByFilter
(
function
(
node
)
{
const
matchedNodes
=
zTreeObj
.
getNodesByFilter
(
function
(
node
)
{
if
(
node
.
meta
.
type
===
'asset'
)
{
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