This commit is contained in:
zyb
2025-05-06 19:57:50 +08:00
parent 56d8d7a345
commit 062550d126
22 changed files with 14472 additions and 0 deletions

31
src/router/index.js Normal file
View File

@@ -0,0 +1,31 @@
import { createRouter, createWebHistory } from 'vue-router'
const routes = [
{
path: '/',
name: 'Maps',
component: () => import('../views/Maps.vue')
},
{
path: '/weekly',
name: 'WeeklyRecommend',
component: () => import('../views/WeeklyRecommend.vue')
},
{
path: '/map/:id',
name: 'MapDetail',
component: () => import('../views/MapDetail.vue')
},
{
path: '/weapon-match',
name: 'WeaponMatch',
component: () => import('../views/WeaponMatch.vue')
}
]
const router = createRouter({
history: createWebHistory(),
routes
})
export default router