Commit 810c0a4b authored by rockyl's avatar rockyl

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

parent 8e5dce37
...@@ -97,10 +97,8 @@ ...@@ -97,10 +97,8 @@
async mounted() { async mounted() {
if (!window.saveProcesses) { if (!window.saveProcesses) {
window.saveProcesses = (processes) => { window.saveProcesses = (processes) => {
this.overwriteProcesses({processes}); this.$nextTick(()=>{
this.$message({ this.saveProcesses(processes);
message: this.$t('Save behavior successfully'),
type: 'success'
}); });
} }
} }
...@@ -433,6 +431,13 @@ ...@@ -433,6 +431,13 @@
processEditorWin.reset({projectData, packageState}); processEditorWin.reset({projectData, packageState});
processEditorWin.edit(path, index); processEditorWin.edit(path, index);
}, },
saveProcesses(processes){
this.overwriteProcesses({processes});
this.$message({
message: this.$t('Save behavior successfully'),
type: 'success'
});
},
handleBehaviorsChange() { handleBehaviorsChange() {
this.makeProjectDirty(); this.makeProjectDirty();
}, },
......
...@@ -65,9 +65,6 @@ ...@@ -65,9 +65,6 @@
this.$refs.behaviorEditor.edit(this.path, this.index); this.$refs.behaviorEditor.edit(this.path, this.index);
}, },
async onSave() { async onSave() {
if (!this.showBadge) {
return;
}
let opener; let opener;
try { try {
if (window.opener && window.opener.saveProcesses) { 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