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