admin base

This commit is contained in:
xiaomlove
2021-04-22 03:24:59 +08:00
parent b822536283
commit 92f22c9560
26 changed files with 891 additions and 75 deletions
+50
View File
@@ -0,0 +1,50 @@
import { createRouter, createWebHashHistory } from 'vue-router'
const router = createRouter({
history: createWebHashHistory(), // hash模式:createWebHashHistoryhistory模式:createWebHistory
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: '/exam',
name: 'exam',
component: () => import('../views/exam/index.vue')
},
{
path: '/exam-form',
name: 'exam-form',
component: () => import('../views/exam/form.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