Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. beforeRouteEnter(to, from, next) {
  2. Promise.all([
  3. store.dispatch("teams/GET"),
  4. store.dispatch("usersMasks/GET"),
  5. store.dispatch("statusv2/GET"),
  6. store.dispatch("categories/GET"),
  7. ]).then(() => {
  8. next()
  9. }).catch(error => {
  10. Vue.prototype.$vs.notify({
  11. title: 'Error',
  12. text: 'Error inesperado, intente de nuevo mas tarde',
  13. color: 'danger',
  14. icon: 'error',
  15. position: 'top-right'
  16. });
  17. });
  18. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement