0👍
it does not guard the routes.
what is the way to keep the routes ?
You must always navigate using vue-router if you want vue-router’s navigation guards to activate on route changes. This line:
window.location.replace('/dashboard')
can be replaced with the vue-router replace equivalent which will activate your navigation guards
router.replace('/dashboard')
- [Vuejs]-TypeError: Cannot read properties of undefined (reading 'version') at ./node_modules/bootstrap-vue/esm/vue.js
- [Vuejs]-Using Vue.js I am getting strange behavior in the two methods tied to click events on two buttons, Save and Delete
Source:stackexchange.com