Guest User

Untitled

a guest
Feb 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. <template>
  2. <div id="app" >
  3. <AppHeader/>
  4. <router-view/>
  5. <AppFooter/>
  6. </div>
  7. </template>
  8.  
  9. <script>
  10. import { AppHeader, AppFooter } from '../components/'
  11.  
  12. export default {
  13. name: 'full',
  14. components: {
  15. AppHeader,
  16. AppFooter
  17. }
  18. }
  19. </script>
  20.  
  21. import Full from './containers/Full.vue'
  22. import Home './views/Home.vue'
  23. import User from './views/User.vue'
  24. import UserEdit from './views/UserEdit.vue'
  25.  
  26. export default [
  27. {
  28. path: '/',
  29. name: 'Home',
  30. redirect: '/dashboard',
  31. component: Full,
  32. meta: { requiresAuth: true },
  33. children: [
  34. {
  35. path: '/dashboard',
  36. name: 'Dashboard',
  37. component: Dashboard
  38. },
  39. {
  40. path: '/user',
  41. name: 'User',
  42. component: User,
  43. children: [
  44. {
  45. path: '/edit/:id',
  46. name: 'UserEdit',
  47. components: UserEdit,
  48. props: true,
  49. }
  50. ]
  51. }
  52. ]
Add Comment
Please, Sign In to add comment