Merge branch 'feature/202501107-all' into feature/20251001-gil

This commit is contained in:
“hyeonggkim”
2025-11-25 20:09:07 +09:00
49 changed files with 945 additions and 343 deletions

View File

@@ -31,21 +31,19 @@ export default defineNuxtRouteMiddleware(async (to, _from) => {
const pageUrl = getPathAfterLanguage(to.path)
// pageUrl이 빈값이거나 null이면 /brand로 리다이렉트
// if (
// !pageUrl ||
// pageUrl === '' ||
// pageUrl === '/' ||
// pageUrl === `/${langCode}/`
// ) {
// return navigateTo(`/${langCode}/brand`, { external: false })
// }
// pageUrl이 빈값이거나 null이면 /home로 리다이렉트
if (
!pageUrl ||
pageUrl === '' ||
pageUrl === '/' ||
pageUrl === `/${langCode}/`
) {
return navigateTo(`/${langCode}/home`, { external: false })
}
// error 페이지는 API 호출하지 않음
if (pageUrl === '/error' || to.path.includes('/error')) {
console.log("🚀 ~pageData.global error 페이지는 API 호출하지 않음")
return
}
if (pageUrl === '/error' || to.path.includes('/error')) return
// 페이지 이동 시 로딩 상태 시작
loadingStore.startFullLoading()