Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Nov 14th, 2018 72 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. let routes = [
  2.     {
  3.         path: '/',
  4.         component: require('./views/Login.vue')
  5.     },
  6.     {
  7.         path: '/messages',
  8.         component: require('./views/Messages.vue'),
  9.     },
  10.     {
  11.         path: '/posts',
  12.         component: require('./views/Dashboard.vue'),
  13.     },
  14.     {
  15.         path: '/login',
  16.         component: require('./views/Login.vue')
  17.     },
  18.     {
  19.         path: '/dashboard',
  20.         component: require('./views/Dashboard.vue'),
  21.     }
  22. ];
  23.    
  24. beforeRouteEnter (to, from, next) {
  25.     getPost(to.params.id, (err, post) => {
  26.         next(vm => vm.setData(err, post))
  27.     })
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top