- 로그인 유지: Capacitor Preferences 로 토큰 영속화(앱 재실행 시 로그아웃 방지), 시작 시 세션 복원 후 마운트 - 내역 추가: 계좌 종류(계좌/카드/대출/증권) 콤보 선택 → 해당 종류만 목록에 - 가계부 내역: 일별 그룹 + 일 수입/지출 합계, 항목은 분류·계좌·금액 / 메모·태그(2줄), per-row 날짜 제거 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+8
-4
@@ -6,13 +6,17 @@ import { createPinia } from 'pinia'
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
import { setupCapacitor } from './capacitor'
|
||||
import { useAuthStore } from './stores/auth'
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
app.use(createPinia())
|
||||
app.use(router)
|
||||
|
||||
app.mount('#app')
|
||||
|
||||
// 네이티브 앱(안드로이드)일 때만 동작 (웹은 no-op)
|
||||
setupCapacitor(router)
|
||||
// 저장된 세션(자동 로그인)을 복원한 뒤 마운트 — 로그인 상태가 결정된 후 렌더
|
||||
const auth = useAuthStore()
|
||||
auth.restore().finally(() => {
|
||||
app.mount('#app')
|
||||
// 네이티브 앱(안드로이드)일 때만 동작 (웹은 no-op)
|
||||
setupCapacitor(router)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user