config.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. export const settings = {
  2. mode: 'history',
  3. base: process.env.BASE_URL,
  4. scrollBehavior() {
  5. return {
  6. x: 0,
  7. y: 0
  8. }
  9. },
  10. routes: [{
  11. path: '/',
  12. name: 'home',
  13. component: () => import('@/views/Home.vue'),
  14. meta: {
  15. pageTitle: 'Home',
  16. breadcrumb: [{
  17. text: 'Home',
  18. active: true,
  19. }, ],
  20. },
  21. },
  22. {
  23. path: '/permission',
  24. name: 'permission',
  25. component: () => import('@/views/permission.vue'),
  26. meta: {
  27. pageTitle: '權限',
  28. breadcrumb: [{
  29. text: '權限',
  30. active: true,
  31. }, ],
  32. requiresAuth: true,
  33. },
  34. },
  35. {
  36. path: '/login',
  37. name: 'login',
  38. component: () => import('@/views/Login.vue'),
  39. meta: {
  40. layout: 'full',
  41. },
  42. },
  43. {
  44. path: '/not-authorized',
  45. name: 'not-authorized',
  46. component: () => import('@/views/error/NotAuthorized.vue'),
  47. meta: {
  48. layout: 'full',
  49. },
  50. },
  51. {
  52. path: '/error-404',
  53. name: 'error-404',
  54. component: () => import('@/views/error/Error404.vue'),
  55. meta: {
  56. layout: 'full',
  57. },
  58. },
  59. {
  60. path: '*',
  61. redirect: 'error-404',
  62. },
  63. {
  64. path: '/draw',
  65. name: 'draw',
  66. component: () => import('@/views/Draw.vue'),
  67. meta: {
  68. pageTitle: 'Draw',
  69. breadcrumb: [{
  70. text: 'Draw',
  71. active: true,
  72. }, ],
  73. },
  74. },
  75. ],
  76. }
  77. export const _ = undefined