Skip to content

Commit

Permalink
feat(editor): 新增可以移除所有service插件的方法
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen committed Dec 6, 2022
1 parent 180252f commit 67c7faf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/editor/src/services/BaseService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ export default class extends EventEmitter {
});
}

public removeAllPlugins() {
this.pluginOptionsList = {};
this.middleware = {};
}

private async doTask() {
this.doingTask = true;
let task = this.taskList.shift();
Expand Down

0 comments on commit 67c7faf

Please sign in to comment.