You've already forked rollingDraw
初始化提交
This commit is contained in:
44
src/router/index.js
Normal file
44
src/router/index.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
redirect: '/admin/participants'
|
||||
},
|
||||
{
|
||||
path: '/admin',
|
||||
component: () => import('@/views/AdminLayout.vue'),
|
||||
children: [
|
||||
{
|
||||
path: 'participants',
|
||||
name: 'Participants',
|
||||
component: () => import('@/views/admin/Participants.vue')
|
||||
},
|
||||
{
|
||||
path: 'prizes',
|
||||
name: 'Prizes',
|
||||
component: () => import('@/views/admin/Prizes.vue')
|
||||
},
|
||||
{
|
||||
path: 'rounds',
|
||||
name: 'Rounds',
|
||||
component: () => import('@/views/admin/Rounds.vue')
|
||||
},
|
||||
{
|
||||
path: 'winners',
|
||||
name: 'Winners',
|
||||
component: () => import('@/views/admin/Winners.vue')
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/display',
|
||||
name: 'Display',
|
||||
component: () => import('@/views/Display.vue')
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user