feat: 추가 component viewer
This commit is contained in:
@@ -53,8 +53,8 @@ export default defineNuxtRouteMiddleware(async (to, _from) => {
|
||||
// await getGameDataExternal(req)
|
||||
|
||||
|
||||
// error 페이지는 API 호출하지 않음
|
||||
if (pageUrl === '/error' || to.path.includes('/error') || to.path.includes('/inspection')) {
|
||||
// error 페이지 및 특수 페이지는 API 호출하지 않음
|
||||
if (pageUrl === '/error' || to.path.includes('/error') || to.path.includes('/inspection') || to.path.includes('components-viewer')) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -27,11 +27,18 @@ export default defineNuxtRouteMiddleware(async (to, _from) => {
|
||||
)
|
||||
|
||||
try {
|
||||
// 점검 페이지 예외 처리
|
||||
if (to.path.includes('inspection')) {
|
||||
console.log('🚀 ~ 점검페이지 접근 pageData.global')
|
||||
return
|
||||
}
|
||||
|
||||
// 컴포넌트 뷰어 페이지 예외 처리
|
||||
if (to.path.includes('components-viewer')) {
|
||||
console.log('🚀 ~ 컴포넌트 뷰어 페이지 접근 pageData.global')
|
||||
return
|
||||
}
|
||||
|
||||
const pageUrl = getPathAfterLanguage(to.path)
|
||||
console.log("🚀 ~ pageUrl:", pageUrl)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user