Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
21f19d3a
Commit
21f19d3a
authored
Mar 27, 2020
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: duplicate page selector items
parent
e413f3e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
page-selector.vue
client/components/common/page-selector.vue
+6
-7
No files found.
client/components/common/page-selector.vue
View file @
21f19d3a
...
...
@@ -28,7 +28,7 @@
div(style='height:400px;')
vue-scroll(:ops='scrollStyle')
v-treeview(
:key='`pageTree` + treeViewCacheId'
:key='`pageTree
-
` + treeViewCacheId'
:active.sync='currentNode'
:open.sync='openNodes'
:items='tree'
...
...
@@ -56,8 +56,8 @@
color='primary'
)
template(v-for='(page, idx) of currentPages')
v-list-item(:key='`page` + page.id', :value='page.path')
v-list-item-icon: v-icon mdi-
file-documen
t-box
v-list-item(:key='`page
-
` + page.id', :value='page.path')
v-list-item-icon: v-icon mdi-
tex
t-box
v-list-item-title
{{
page
.
title
}}
v-divider(v-if='idx < pages.length - 1')
v-alert.animated.fadeIn(
...
...
@@ -143,7 +143,7 @@ export default {
tree
:
[
{
id
:
0
,
title
:
'/ (root'
,
title
:
'/ (root
)
'
,
children
:
[]
}
],
...
...
@@ -286,9 +286,8 @@ export default {
}
else
{
item
.
children
=
undefined
}
this
.
pages
.
push
(...
itemPages
)
this
.
all
.
push
(...
items
)
this
.
pages
=
_
.
unionBy
(
this
.
pages
,
itemPages
,
'id'
)
this
.
all
=
_
.
unionBy
(
this
.
all
,
items
,
'id'
)
this
.
searchLoading
=
false
}
...
...
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