feat: 추가 component viewer

This commit is contained in:
“hyeonggkim”
2025-11-19 10:02:24 +09:00
parent ae7fb5fd60
commit 3008b19a19
7 changed files with 3580 additions and 3 deletions

View File

@@ -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
}

View File

@@ -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)