게시물 상세 사이드바 목차·광고 재배치와 세션 확인 개선

게시물 상세에서는 오른쪽 사이드에 목차와 광고를 배치하고, 비로그인 세션 확인 시 콘솔 401 로그가 나지 않도록 정리했다.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-12 15:40:35 +09:00
parent eba7704ab8
commit 06271b3674
15 changed files with 214 additions and 61 deletions

View File

@@ -134,13 +134,13 @@ const shareLinks = computed(() => [
*/
const fetchCurrentViewer = async () => {
try {
currentMember.value = await $fetch('/api/auth/me')
currentMember.value = await $fetch('/api/auth/me?optional=1')
} catch {
currentMember.value = null
}
try {
currentAdmin.value = await $fetch('/admin/api/auth/me')
currentAdmin.value = await $fetch('/admin/api/auth/me?optional=1')
} catch {
currentAdmin.value = null
}