bbafb3ed4d
- VITE_API_BASE_URL 기반 fetch 클라이언트 및 ApiError 처리 - api/spots, api/matches 타입드 모듈 - HomePage: 스팟/한줄평/메이트 실제 로드, 체크인·매칭 신청 API 연동 - 임시 세션 스토어(인증 도입 전, userId/dogId) - 로딩/에러/빈 상태 처리 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
14 lines
418 B
TypeScript
14 lines
418 B
TypeScript
import { defineStore } from 'pinia'
|
|
import { ref } from 'vue'
|
|
|
|
/**
|
|
* 임시 세션 스토어 (인증 도입 전까지 사용).
|
|
* local 시드 데이터 기준: 내 유저=1, 내 강아지(몽이)=1.
|
|
* 인증(4번) 도입 시 로그인 응답으로 대체.
|
|
*/
|
|
export const useSessionStore = defineStore('session', () => {
|
|
const userId = ref<number>(1)
|
|
const dogId = ref<number>(1)
|
|
return { userId, dogId }
|
|
})
|