index.js 403 B

123456789101112131415161718192021222324
  1. import { createRouter, createWebHashHistory } from 'vue-router'
  2. const routes = [{
  3. path: '/',
  4. redirect: '/login'
  5. },
  6. {
  7. path: '/init',
  8. name: 'Init',
  9. component: () => import('@/view/init/index.vue')
  10. },
  11. {
  12. path: '/login',
  13. name: 'Login',
  14. component: () => import('@/view/login/index.vue')
  15. }
  16. ]
  17. const router = createRouter({
  18. history: createWebHashHistory(),
  19. routes
  20. })
  21. export default router