index.ts 456 B

12345678910111213141516171819202122
  1. import { RouteRecordRaw, createRouter, createWebHistory } from 'vue-router'
  2. import shipTestRouter from "./ship-test";
  3. const routes = [
  4. {
  5. path: '/',
  6. component: () => import('@/views/index.vue'),
  7. },
  8. {
  9. path: '/auth',
  10. name: 'auth',
  11. component: () => import('@/views/auth.vue')
  12. },
  13. ...shipTestRouter,
  14. ]
  15. const router = createRouter({
  16. history: createWebHistory(),
  17. routes,
  18. });
  19. export default router;