17 lines
387 B
JavaScript
17 lines
387 B
JavaScript
|
|
import { createRouter, createWebHistory } from 'vue-router'
|
||
|
|
import Login from '../views/Login.vue'
|
||
|
|
import Dashboard from '../views/Dashboard.vue'
|
||
|
|
|
||
|
|
const routes = [
|
||
|
|
{ path: '/', redirect: '/login' },
|
||
|
|
{ path: '/login', component: Login },
|
||
|
|
{ path: '/dashboard', component: Dashboard }
|
||
|
|
]
|
||
|
|
|
||
|
|
const router = createRouter({
|
||
|
|
history: createWebHistory(),
|
||
|
|
routes
|
||
|
|
})
|
||
|
|
|
||
|
|
export default router
|