From 20965f8a42853e724e2cacbf3779091e2da166aa Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Sun, 26 Oct 2025 13:13:37 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20JavaScript=20=ED=85=9C=ED=94=8C=EB=A6=BF?= =?UTF-8?q?=20=EB=A6=AC=ED=84=B0=EB=9F=B4=20=EC=9D=B4=EC=8A=A4=EC=BC=80?= =?UTF-8?q?=EC=9D=B4=ED=94=84=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit πŸ› ν•΄κ²°λœ 문제: - SyntaxError: Invalid escape in identifier 였λ₯˜ μˆ˜μ • - λ°±μŠ¬λž˜μ‹œ μ΄μŠ€μΌ€μ΄ν”„ 문제 ν•΄κ²° πŸ”§ μˆ˜μ • λ‚΄μš©: - '\n' β†’ '\n' (κ°œν–‰ 문자 μ˜¬λ°”λ₯Έ μ΄μŠ€μΌ€μ΄ν”„) - `/api/management/${issueId}` β†’ (ν…œν”Œλ¦Ώ λ¦¬ν„°λŸ΄ μˆ˜μ •) - `Bearer ${localStorage...` β†’ (ν…œν”Œλ¦Ώ λ¦¬ν„°λŸ΄ μˆ˜μ •) - `μ €μž₯ μ‹€νŒ¨: ${error.detail...` β†’ (ν…œν”Œλ¦Ώ λ¦¬ν„°λŸ΄ μˆ˜μ •) πŸ’‘ 원인: - HTML λ‚΄ JavaScriptμ—μ„œ λ°±μŠ¬λž˜μ‹œκ°€ 이쀑 μ΄μŠ€μΌ€μ΄ν”„λ˜μ–΄ λ°œμƒ - ν…œν”Œλ¦Ώ λ¦¬ν„°λŸ΄ 백틱이 λ°±μŠ¬λž˜μ‹œλ‘œ μ΄μŠ€μΌ€μ΄ν”„λ˜μ–΄ 문법 였λ₯˜ Expected Result: βœ… JavaScript 문법 였λ₯˜ ν•΄κ²° βœ… λͺ¨λ‹¬μ—μ„œ 이슈 μ €μž₯ κΈ°λŠ₯ 정상 μž‘λ™ βœ… ν…œν”Œλ¦Ώ λ¦¬ν„°λŸ΄ μ˜¬λ°”λ₯Έ μ‚¬μš© --- frontend/issues-management.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/issues-management.html b/frontend/issues-management.html index d5ee217..766535b 100644 --- a/frontend/issues-management.html +++ b/frontend/issues-management.html @@ -1908,13 +1908,13 @@ return; } - const combinedDescription = title + (detail ? '\\n' + detail : ''); + const combinedDescription = title + (detail ? '\n' + detail : ''); try { - const response = await fetch(\`/api/management/\${issueId}\`, { + const response = await fetch(`/api/management/${issueId}`, { method: 'PUT', headers: { - 'Authorization': \`Bearer \${localStorage.getItem('access_token')}\`, + 'Authorization': `Bearer ${localStorage.getItem('access_token')}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ @@ -1932,7 +1932,7 @@ loadManagementData(); // νŽ˜μ΄μ§€ μƒˆλ‘œκ³ μΉ¨ } else { const error = await response.json(); - alert(\`μ €μž₯ μ‹€νŒ¨: \${error.detail || 'μ•Œ 수 μ—†λŠ” 였λ₯˜'}\`); + alert(`μ €μž₯ μ‹€νŒ¨: ${error.detail || 'μ•Œ 수 μ—†λŠ” 였λ₯˜'}`); } } catch (error) { console.error('μ €μž₯ 였λ₯˜:', error);