Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-editor
Project
Project
Details
Activity
Releases
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
劳工
zeroing-editor
Commits
77598422
Commit
77598422
authored
Apr 27, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
aed789d3
1c7c252a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
project.js
src/store/modules/project.js
+13
-1
No files found.
src/store/modules/project.js
View file @
77598422
...
@@ -360,16 +360,28 @@ export const projectStore = {
...
@@ -360,16 +360,28 @@ export const projectStore = {
let
_node1
=
node
;
let
_node1
=
node
;
console
.
log
(
_node1
)
console
.
log
(
_node1
)
copyNodeCatch
=
clonePureObj
(
_node1
)
copyNodeCatch
=
clonePureObj
(
_node1
)
console
.
log
(
"copyNodeCatch"
,
copyNodeCatch
)
if
(
copyState
==
1
)
{
if
(
copyState
==
1
)
{
//复制行为
//复制行为
copyNodeCatch
.
events
copyNodeCatch
.
events
}
else
if
(
copyState
==
2
)
{
}
else
if
(
copyState
==
2
)
{
//不复制行为
//不复制行为
delete
copyNodeCatch
.
events
console
.
log
(
this
)
deleteChildEvent
(
copyNodeCatch
)
}
}
//copy(JSON.stringify(copyNodeCatch))
//copy(JSON.stringify(copyNodeCatch))
function
deleteChildEvent
(
copyNodeCatch
){
console
.
log
(
123
)
delete
copyNodeCatch
.
events
;
if
(
copyNodeCatch
.
children
){
for
(
let
item
of
copyNodeCatch
.
children
){
deleteChildEvent
(
item
)
}
}
}
},
},
pasteNode
(
state
,
{
node
,
parentNode
,
pasteState
})
{
pasteNode
(
state
,
{
node
,
parentNode
,
pasteState
})
{
let
_node1
=
copyNodeCatch
;
let
_node1
=
copyNodeCatch
;
console
.
log
(
copyNodeCatch
);
console
.
log
(
copyNodeCatch
);
...
...
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