Files
dognation_PT/src/stores/session.ts
T

14 lines
418 B
TypeScript
Raw Normal View History

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 }
})