Commit 6d639219 authored by bianlongting's avatar bianlongting 💬

fix

parent 831e10d3
......@@ -226,6 +226,7 @@ export default {
this.meta.script = this.$refs.codeEditor.editor.getValue();
this.$emit("input", this.meta, isPreview);
this.visible = false;
this.meta = null;
}
} else {
return false;
......@@ -234,6 +235,7 @@ export default {
},
cancel() {
this.visible = false;
this.meta = null;
},
copyMeta() {
copy(JSON.stringify(this.meta));
......
......@@ -39,6 +39,9 @@ export default {
document.getElementById("container"),
config
);
},
destroyed() {
this.editor.dispose();
}
};
</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