fix: use router.matched
according to vue-router's document, router.matcher should be router.matched
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user