Commit 810c0a4b authored by rockyl's avatar rockyl

修复独立行为编辑器的问题

parent 8e5dce37
......@@ -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();
},
......
......@@ -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) {
......
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