Skip to content

Commit

Permalink
close maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
da-in committed Apr 8, 2024
1 parent eb42ade commit 9ad544b
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import { createRouter, createWebHistory } from 'vue-router'
// import PlayPage from '../pages/play/PlayPage.vue'
// import RankPage from '../pages/rank/RankPage.vue'
// import DevHomePage from '../event-pages/home/DevHomePage.vue'
import MaintenancePage from '@/event-pages/home/MaintenancePage.vue'
import PlayPage from '../pages/play/PlayPage.vue'
import RankPage from '../pages/rank/RankPage.vue'
import DevHomePage from '../event-pages/home/DevHomePage.vue'
// import MaintenancePage from '@/event-pages/home/MaintenancePage.vue'

const routes = [
// {
// path: '/',
// component: DevHomePage,
// },
{
path: '/',
component: MaintenancePage,
component: DevHomePage,
},
{
path: '/play',
component: PlayPage,
},
{
path: '/rank',
component: RankPage,
},
// {
// path: '/play',
// component: PlayPage,
// },
// {
// path: '/rank',
// component: RankPage,
// path: '/',
// component: MaintenancePage,
// },
]

Expand All @@ -28,10 +28,10 @@ const router = createRouter({
routes,
})

router.beforeEach((to) => {
if (to.fullPath !== '/') {
return { path: '/' }
}
})
// router.beforeEach((to) => {
// if (to.fullPath !== '/') {
// return { path: '/' }
// }
// })

export default router

0 comments on commit 9ad544b

Please sign in to comment.