refactor. pageData.global.ts에서 에러 페이지 처리 로직 개선
This commit is contained in:
@@ -16,7 +16,14 @@ export default defineNuxtRouteMiddleware(async (to, _from) => {
|
|||||||
const runtimeConfig = useRuntimeConfig()
|
const runtimeConfig = useRuntimeConfig()
|
||||||
|
|
||||||
// error 페이지는 실행X -----
|
// error 페이지는 실행X -----
|
||||||
if (to.path.includes('/error')) return
|
if (to.path.includes('/error')) {
|
||||||
|
return abortNavigation(
|
||||||
|
createError({
|
||||||
|
statusCode: 404,
|
||||||
|
statusMessage: 'error page',
|
||||||
|
})
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
// inspection 페이지는 실행X -----
|
// inspection 페이지는 실행X -----
|
||||||
if (to.path.includes('/inspection')) return
|
if (to.path.includes('/inspection')) return
|
||||||
|
|||||||
Reference in New Issue
Block a user