fix: use router.matched
according to vue-router's document, router.matcher should be router.matched
This commit is contained in:
parent
a45e64fcb2
commit
a4d771f5f5
|
@ -398,7 +398,7 @@ const router = createRouter()
|
|||
// Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
|
||||
export function resetRouter() {
|
||||
const newRouter = createRouter()
|
||||
router.matcher = newRouter.matcher // reset router
|
||||
router.matched = newRouter.matched // reset router
|
||||
}
|
||||
|
||||
export default router
|
||||
|
|
Loading…
Reference in New Issue