初始化足球投注平台 MVP Monorepo
包含 NestJS 后端、三端前端、Prisma 数据模型、结算引擎测试与 PRD 文档。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
23
apps/admin/src/router/index.ts
Normal file
23
apps/admin/src/router/index.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router';
|
||||
|
||||
export default createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [
|
||||
{ path: '/login', component: () => import('./views/Login.vue') },
|
||||
{
|
||||
path: '/',
|
||||
component: () => import('./layouts/AdminLayout.vue'),
|
||||
meta: { auth: true },
|
||||
children: [
|
||||
{ path: '', component: () => import('./views/Dashboard.vue') },
|
||||
{ path: 'users', component: () => import('./views/Users.vue') },
|
||||
{ path: 'agents', component: () => import('./views/Agents.vue') },
|
||||
{ path: 'matches', component: () => import('./views/Matches.vue') },
|
||||
{ path: 'bets', component: () => import('./views/Bets.vue') },
|
||||
{ path: 'settlement/:id', component: () => import('./views/Settlement.vue') },
|
||||
{ path: 'cashback', component: () => import('./views/Cashback.vue') },
|
||||
{ path: 'audit', component: () => import('./views/Audit.vue') },
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user