feat. GR_DETAIL_01 템플릿 제작

This commit is contained in:
clkim
2025-10-17 17:51:19 +09:00
parent 120580495f
commit ebfdd5c8fd
13 changed files with 198 additions and 30 deletions

View File

@@ -19,11 +19,9 @@ export default defineNuxtRouteMiddleware(async (to, _from) => {
const languagePattern = /^\/([a-z]{2})(?:\/|$)/
const match = to.path.match(languagePattern)
const currentLangCode = match ? match[1] : null
// console.log('🚀 3333~ currentLangCode:', currentLangCode)
// 허용된 언어 코드 목록
const allowedLangCodes = gameDataStore.gameData.lang_codes || []
// console.log('🚀 ~ allowedLangCodes:', allowedLangCodes)
// 현재 언어가 허용된 언어 목록에 없으면 404로 리다이렉트
if (currentLangCode && !allowedLangCodes.includes(currentLangCode)) {