charles
2024-04-26 8a4d220f73dcee2ab848596eb4e48a56b94c7a99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { createRouter, createWebHashHistory } from 'vue-router'
//import DashboardView from '../views/dashboard/index.vue'
import loginView from '../views/login/loginView.vue'
import DashboardView from '../views/newDashboard/index.vue'
const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'dashboard',
      component: DashboardView
    },
    {
      path: '/login',
      name: 'login',
      component: loginView
    },
    {
      path: '/:error*',
      redirect: '/'
    }
  ]
})
 
export default router