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
6d639219
Commit
6d639219
authored
Jan 06, 2020
by
bianlongting
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
831e10d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
MetaEditorDialog.vue
src/views/Editor/behavior-editor/MetaEditorDialog.vue
+2
-0
MonacoEditor.vue
src/views/Editor/components/MonacoEditor.vue
+3
-0
No files found.
src/views/Editor/behavior-editor/MetaEditorDialog.vue
View file @
6d639219
...
@@ -226,6 +226,7 @@ export default {
...
@@ -226,6 +226,7 @@ export default {
this
.
meta
.
script
=
this
.
$refs
.
codeEditor
.
editor
.
getValue
();
this
.
meta
.
script
=
this
.
$refs
.
codeEditor
.
editor
.
getValue
();
this
.
$emit
(
"input"
,
this
.
meta
,
isPreview
);
this
.
$emit
(
"input"
,
this
.
meta
,
isPreview
);
this
.
visible
=
false
;
this
.
visible
=
false
;
this
.
meta
=
null
;
}
}
}
else
{
}
else
{
return
false
;
return
false
;
...
@@ -234,6 +235,7 @@ export default {
...
@@ -234,6 +235,7 @@ export default {
},
},
cancel
()
{
cancel
()
{
this
.
visible
=
false
;
this
.
visible
=
false
;
this
.
meta
=
null
;
},
},
copyMeta
()
{
copyMeta
()
{
copy
(
JSON
.
stringify
(
this
.
meta
));
copy
(
JSON
.
stringify
(
this
.
meta
));
...
...
src/views/Editor/components/MonacoEditor.vue
View file @
6d639219
...
@@ -39,6 +39,9 @@ export default {
...
@@ -39,6 +39,9 @@ export default {
document
.
getElementById
(
"container"
),
document
.
getElementById
(
"container"
),
config
config
);
);
},
destroyed
()
{
this
.
editor
.
dispose
();
}
}
};
};
</
script
>
</
script
>
...
...
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