0👍
By inspecting the router
, finally found a workaround.
The router
has a apps
property, which turns out that the router.apps[1]
contains the methods!
So the change is:
router.beforeEach(async function (to, from, next) {
- router.app.aMethod();
+ router.apps[1].aMethod();
});
- [Vuejs]-Scroll snapping overridden by child element
- [Vuejs]-How to make Vue raise an error warning on non-existing key in v-for?
Source:stackexchange.com