提交
This commit is contained in:
31
src/router/index.js
Normal file
31
src/router/index.js
Normal 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
|
||||
Reference in New Issue
Block a user