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') } ] } ] })