1
YM
2024-05-15 408ce401cadce66e4de748dec48daf5e8af00477
src/router/index.ts
@@ -4,12 +4,8 @@
const Login = () => import('@/views/login.vue')
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: 'home'
    },
    {
      path: '/login',
      name: 'login',
@@ -23,11 +19,16 @@
          path: '/home',
          name: 'home',
          meta: { auth: true },
          component: Home,
          component: Home
        },
        {
          path: '/dictionary',
          name: 'dictionary',
          meta: { auth: true },
          component: () =>import('@/views/components/dictionary.vue')
        }
      ]
    }
  ]
})