Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
vridge-docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
JIRA
JIRA
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Gyeongho Park
vridge-docs
Commits
4bd45319
Commit
4bd45319
authored
Feb 25, 2023
by
shj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] 페이지네이션으로 가이드 이동 시 nav 활성화 되도록
parent
3800a25a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
default.vue
docs-front/layouts/default.vue
+16
-0
No files found.
docs-front/layouts/default.vue
View file @
4bd45319
...
...
@@ -507,6 +507,9 @@ export default{
activeTargetPaths
.
push
(
path
.
substr
(
0
,
index
+
1
))
}
// 전체 인덱스 비활성화
this
.
resetNavActivation
(
this
.
guideIndex
)
// 활성화
let
guideList
=
this
.
guideIndex
for
(
let
i
=
0
;
i
<
activeTargetPaths
.
length
;
++
i
){
...
...
@@ -520,6 +523,16 @@ export default{
}
}
},
// 재귀호출로 tree 전체 active = false 처리
resetNavActivation
(
parent
){
for
(
let
i
=
0
;
i
<
parent
.
length
;
++
i
){
parent
[
i
].
active
=
false
if
(
parent
[
i
].
children
.
length
>
0
){
this
.
resetNavActivation
(
parent
[
i
].
children
)
}
}
}
},
mounted
(){
this
.
getGuideIndex
()
...
...
@@ -534,6 +547,9 @@ export default{
'$store.state.guideNavigator'
()
{
this
.
navPositionList
=
this
.
$store
.
state
.
guideNavigator
.
map
((
nav
)
=>
nav
.
position
)
},
'$route.params.guide'
()
{
this
.
activeNav
()
},
showSearch
(
val
){
if
(
val
){
this
.
$nextTick
(()
=>
{
...
...
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