Files
nexusphp/admin/src/router/index.js
2021-05-02 17:24:05 +08:00

62 lines
1.7 KiB
JavaScript
Vendored
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { createRouter, createWebHashHistory } from 'vue-router'
const router = createRouter({
history: createWebHashHistory(), // hash模式createWebHashHistoryhistory模式createWebHistory
base: '/admin/',
routes: [
{
path: '/',
name: 'dashboard',
component: () => import('../views/dashboard/index.vue')
},
{
path: '/login',
name: 'login',
component: () => import('../views/login.vue')
},
{
path: '/user',
name: 'user',
component: () => import('../views/user/index.vue')
},
{
path: '/user-form',
name: 'user-form',
component: () => import('../views/user/form.vue')
},
{
path: '/user-detail',
name: 'user-detail',
component: () => import('../views/user/detail.vue')
},
{
path: '/exam',
name: 'exam',
component: () => import('../views/exam/index.vue')
},
{
path: '/exam-form',
name: 'exam-form',
component: () => import('../views/exam/form.vue')
},
{
path: '/exam-user',
name: 'exam-user',
component: () => import('../views/exam/user.vue')
},
{
path: '/agent-allow',
name: 'agent-allow',
component: () => import('../views/agent-allow/index.vue')
},
{
path: '/agent-allow-form',
name: 'agent-allow-form',
component: () => import('../views/agent-allow/form.vue')
},
]
})
export default router