Skip to content

Commit ded9b2b

Browse files
authored
Merge pull request #9 from TeamProject-Daewoo/local_main
fix:errorPage
2 parents 3ce7e6b + ac09244 commit ded9b2b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/router/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ const router = createRouter({
5151
// 👇 /admin 접속 시 자동으로 /admin/list로 이동
5252
{ path: '', redirect: { name: 'adminList' } }
5353
]
54-
},
54+
}, { path: '/:pathMatch(.*)*', name: 'NotFound', component: errorPage, meta: { layout: 'EmptyLayout' } }
5555
],
5656
scrollBehavior(to, from, savedPosition) {
5757
return { top: 0 }
58-
}
58+
},
59+
5960
})
6061

6162
// 네비게이션 가드 (Navigation Guard)

0 commit comments

Comments
 (0)