[API 통신 보완] $fetch방식으로 변경 및 로그인 처리 보완완

This commit is contained in:
2025-08-28 16:00:25 +09:00
parent ec6212c02f
commit 9eb6e23757
4 changed files with 76 additions and 62 deletions

View File

@@ -19,7 +19,7 @@
<p class="text-lg text-gray-800 mb-2">
안녕하세요,
<span class="font-semibold text-blue-600">{{
userStore.userName
userStore.user?.name
}}</span
>!
</p>
@@ -28,7 +28,15 @@
로그인되었습니다.
</p>
<p class="text-sm text-gray-600">
<button @click="useApi<ApiResponse<{}>>('/files/download/1756167537354001',{method: 'get'});" > Test</button>
<button
@click="
useApi<ApiResponse<{}>>('/files/download/1756167537354001', {
method: 'get',
})
"
>
Test
</button>
</p>
</div>
<div