Skip to content

Commit

Permalink
inspection block site
Browse files Browse the repository at this point in the history
  • Loading branch information
da-in committed Apr 8, 2024
1 parent 6ee34c3 commit b1fbb91
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,37 +1,37 @@
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 Maintenance 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: '/',
component: MaintenancePage,
},
// {
// path: '/play',
// component: PlayPage,
// },
// {
// path: '/rank',
// component: RankPage,
// },
]

const router = createRouter({
history: createWebHistory('/'),
routes,
})

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

export default router

0 comments on commit b1fbb91

Please sign in to comment.