1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import { createRouter, createWebHashHistory } from 'vue-router'
- import HomeView from '../views/HomeView.vue'
- import LoginView from '../views/login.vue'
- import DashboardView from '../views/dashboard.vue'
- import OrganizationView from '../views/organization.vue'
- import UserListView from '../views/userList.vue'
- const routes = [
- {
- path: '/',
- name: 'Home',
- component: HomeView
- },
- {
- path: '/login',
- name: 'Login',
- component: LoginView
- },
- {
- path: '/dashboard',
- name: 'Dashboard',
- component: DashboardView
- },
- {
- path: '/organization',
- name: 'Organization',
- component: OrganizationView
- },
- {
- path: '/userList',
- name: 'UserList',
- component: UserListView
- }
- ]
- const router = createRouter({
- history: createWebHashHistory(location.pathname),
- routes
- })
- export default router
|