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
3800a25a
Commit
3800a25a
authored
Feb 25, 2023
by
shj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEL] 미사용 코드 삭제
parent
d9892858
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
36 deletions
+1
-36
default.vue
docs-front/layouts/default.vue
+1
-36
No files found.
docs-front/layouts/default.vue
View file @
3800a25a
...
@@ -362,7 +362,7 @@ export default{
...
@@ -362,7 +362,7 @@ export default{
})
})
if
(
el
.
children
.
length
>
0
){
if
(
el
.
children
.
length
>
0
){
this
.
set
EditModeChildren
(
el
.
children
,
unclassifiedList
)
this
.
set
TreeChild
(
el
.
children
,
unclassifiedList
)
}
}
})
})
},
},
...
@@ -372,41 +372,6 @@ export default{
...
@@ -372,41 +372,6 @@ export default{
this
.
$store
.
commit
(
'setEditMode'
,
true
)
this
.
$store
.
commit
(
'setEditMode'
,
true
)
}
}
},
},
createEditModeList
(){
let
unclassifiedList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
rawIndexList
));
this
.
editModeList
=
[]
this
.
editModeRemainList
=
[]
// depth 1 리스트 생성
unclassifiedList
.
forEach
(
index
=>
{
if
(
index
.
depth
===
1
){
this
.
editModeList
.
push
(
index
)
delete
unclassifiedList
[
unclassifiedList
.
indexOf
(
index
)]
}
})
// depth 2 이상인 인덱스들 트리구조 생성
this
.
setEditModeChildren
(
this
.
editModeList
,
unclassifiedList
)
unclassifiedList
=
unclassifiedList
.
filter
(
el
=>
el
)
// empty 값 삭제
this
.
editModeRemainList
=
unclassifiedList
},
setEditModeChildren
(
targetList
,
unclassifiedList
){
targetList
.
forEach
(
el
=>
{
el
.
children
=
[]
unclassifiedList
.
forEach
(
ucsfEl
=>
{
if
(
ucsfEl
.
path
.
indexOf
(
el
.
path
)
>
-
1
&&
ucsfEl
.
depth
===
el
.
depth
+
1
){
el
.
children
.
push
(
ucsfEl
)
delete
unclassifiedList
[
unclassifiedList
.
indexOf
(
ucsfEl
)]
}
})
if
(
el
.
children
.
length
>
0
){
this
.
setEditModeChildren
(
el
.
children
,
unclassifiedList
)
}
})
},
setEditTarget
(
item
){
setEditTarget
(
item
){
this
.
formData
=
item
this
.
formData
=
item
this
.
editFormMethod
=
'수정'
this
.
editFormMethod
=
'수정'
...
...
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