0👍
You have to use redirect
property instead of beforeEnter
.
Example (retrieved from the docs) :
redirect: function (route, resolve, reject) {
if (true) {
resolve('myUrl');
}
else reject();
}
- [Vuejs]-How to accept multiple file types in swal sweetalert
- [Vuejs]-Object.assign breaks v-for (functional component)
Source:stackexchange.com