Skip to content

Commit

Permalink
fix: rename event name
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfuboy committed Jun 28, 2022
1 parent 56268a0 commit c17d208
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class HistoryComponent implements OnInit {
}

gotoTestHistory(data) {
this.message.send({ type: 'gotoAPiTest', data });
this.message.send({ type: 'gotoApiTest', data });
}

clearAllHistory() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class ApiTestComponent implements OnInit, OnDestroy {
this.watchTabChange();
this.watchEnvChange();
this.messageService.get().subscribe(({ type, data }) => {
if (type === 'gotoAPiTest') {
if (type === 'gotoApiTest') {
this.restoreHistory(data);
}
});
Expand Down

0 comments on commit c17d208

Please sign in to comment.