src/router/index.js
@@ -5,7 +5,7 @@ const routes = [ { path: '/', redirect: '/index' redirect: '/login' }, { @@ -24,6 +24,11 @@ }, ] }, // 登录 { path: '/login', component: () => import('@/views/login/index.vue'), }, // 在线培训 { path: '/train',