Skip to content

Commit

Permalink
fix: revert router override
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 2, 2020
1 parent a869144 commit 09d3cfb
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/vue-app/template/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,5 @@ export const routerOptions = {
}

export function createRouter () {
const router = new Router(routerOptions)
// const resolve = router.resolve.bind(router)
// encodeURI(decodeURI()) ~> support both encoded and non-encoded urls
// router.resolve = (to, current, append) => {
// if (typeof to === 'string') {
// to = encodeURI(decodeURI(to))
// }
// return resolve(to, current, append)
// }
return router
return new Router(routerOptions)
}

0 comments on commit 09d3cfb

Please sign in to comment.