index.js 846 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import { createRouter, createWebHashHistory } from 'vue-router'
  2. import HomeView from '../views/HomeView.vue'
  3. import LoginView from '../views/login.vue'
  4. import DashboardView from '../views/dashboard.vue'
  5. import OrganizationView from '../views/organization.vue'
  6. import UserListView from '../views/userList.vue'
  7. const routes = [
  8. {
  9. path: '/',
  10. name: 'Home',
  11. component: HomeView
  12. },
  13. {
  14. path: '/login',
  15. name: 'Login',
  16. component: LoginView
  17. },
  18. {
  19. path: '/dashboard',
  20. name: 'Dashboard',
  21. component: DashboardView
  22. },
  23. {
  24. path: '/organization',
  25. name: 'Organization',
  26. component: OrganizationView
  27. },
  28. {
  29. path: '/userList',
  30. name: 'UserList',
  31. component: UserListView
  32. }
  33. ]
  34. const router = createRouter({
  35. history: createWebHashHistory(location.pathname),
  36. routes
  37. })
  38. export default router