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
810c0a4b
Commit
810c0a4b
authored
May 15, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复独立行为编辑器的问题
parent
8e5dce37
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
Editor.vue
src/views/Editor.vue
+9
-4
ProcessEditor.vue
src/views/ProcessEditor.vue
+0
-3
No files found.
src/views/Editor.vue
View file @
810c0a4b
...
...
@@ -97,10 +97,8 @@
async
mounted
()
{
if
(
!
window
.
saveProcesses
)
{
window
.
saveProcesses
=
(
processes
)
=>
{
this
.
overwriteProcesses
({
processes
});
this
.
$message
({
message
:
this
.
$t
(
'Save behavior successfully'
),
type
:
'success'
this
.
$nextTick
(()
=>
{
this
.
saveProcesses
(
processes
);
});
}
}
...
...
@@ -433,6 +431,13 @@
processEditorWin
.
reset
({
projectData
,
packageState
});
processEditorWin
.
edit
(
path
,
index
);
},
saveProcesses
(
processes
){
this
.
overwriteProcesses
({
processes
});
this
.
$message
({
message
:
this
.
$t
(
'Save behavior successfully'
),
type
:
'success'
});
},
handleBehaviorsChange
()
{
this
.
makeProjectDirty
();
},
...
...
src/views/ProcessEditor.vue
View file @
810c0a4b
...
...
@@ -65,9 +65,6 @@
this
.
$refs
.
behaviorEditor
.
edit
(
this
.
path
,
this
.
index
);
},
async
onSave
()
{
if
(
!
this
.
showBadge
)
{
return
;
}
let
opener
;
try
{
if
(
window
.
opener
&&
window
.
opener
.
saveProcesses
)
{
...
...
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