Skip to content

Commit

Permalink
fix: 修改 patchRoutes 的使用方式 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariel-Cheng authored Mar 3, 2020
1 parent 0c8aeb9 commit 9584b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ function formatter(data: MenuDataItem[]): MenuDataItem[] {
return data;
}

export function patchRoutes(routes) {
export function patchRoutes({ routes }) {
formatter(routes);
}

0 comments on commit 9584b01

Please sign in to comment.