Skip to content

Commit

Permalink
fix(vue-app): if user passes routes parameter, delete it
Browse files Browse the repository at this point in the history
  • Loading branch information
exreplay committed Jun 20, 2019
1 parent 0dac69d commit b52344d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vue-app/lib/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@ export function createRouter({ i18n }) {
routes: typeof routes === 'function' ? routes({ i18n }) : routes
};


if (userConfig.routes) delete userConfig.routes;

return new VueRouter(Object.assign(config, userConfig));
}

0 comments on commit b52344d

Please sign in to comment.