123456789101112131415161718192021222324 |
- import { createRouter, createWebHashHistory } from 'vue-router'
- const routes = [{
- path: '/',
- redirect: '/login'
- },
- {
- path: '/init',
- name: 'Init',
- component: () => import('@/view/init/index.vue')
- },
- {
- path: '/login',
- name: 'Login',
- component: () => import('@/view/login/index.vue')
- }
- ]
- const router = createRouter({
- history: createWebHashHistory(),
- routes
- })
- export default router
|