Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- beforeRouteEnter(to, from, next) {
- Promise.all([
- store.dispatch("teams/GET"),
- store.dispatch("usersMasks/GET"),
- store.dispatch("statusv2/GET"),
- store.dispatch("categories/GET"),
- ]).then(() => {
- next()
- }).catch(error => {
- Vue.prototype.$vs.notify({
- title: 'Error',
- text: 'Error inesperado, intente de nuevo mas tarde',
- color: 'danger',
- icon: 'error',
- position: 'top-right'
- });
- });
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement