Commit 6d639219 authored by bianlongting's avatar bianlongting 💬

fix

parent 831e10d3
...@@ -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));
......
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment