fix: 무료 회원 가계부 내역 진입 시 유료 안내로 튕기는 버그

- onMounted 의 runRecurrings(고정지출 자동반영)는 유료 전용 경로(/recurrings/run)라
  무료 회원이 403 → premium:required → /upgrade 로 리다이렉트되던 문제
- isPremium 일 때만 runRecurrings 호출, '이 내역을 고정지출로 등록' 버튼도 유료에만 노출

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ByungCheol
2026-06-28 11:24:59 +09:00
parent 9861ba90ae
commit 866abee860
+8 -5
View File
@@ -803,10 +803,13 @@ async function analyzePasted() {
onMounted(async () => { onMounted(async () => {
// 진입 시 밀린 정기 거래를 먼저 반영한 뒤 목록을 불러온다 (중복 없이) // 진입 시 밀린 정기 거래를 먼저 반영한 뒤 목록을 불러온다 (중복 없이)
try { // 고정지출은 유료 전용 — 무료 회원은 호출 자체를 건너뛴다(403/업그레이드 리다이렉트 방지)
await accountApi.runRecurrings() if (isPremium.value) {
} catch { try {
// 정기 거래 반영 실패는 가계부 조회를 막지 않는다 await accountApi.runRecurrings()
} catch {
// 정기 거래 반영 실패는 가계부 조회를 막지 않는다
}
} }
load() load()
loadTagOptions() loadTagOptions()
@@ -1102,7 +1105,7 @@ onMounted(async () => {
<p v-if="formInfo" class="msg ok">{{ formInfo }}</p> <p v-if="formInfo" class="msg ok">{{ formInfo }}</p>
<button <button
v-if="editId && form.type !== 'REPAYMENT'" v-if="isPremium && editId && form.type !== 'REPAYMENT'"
type="button" type="button"
class="to-recurring" class="to-recurring"
:disabled="submitting" :disabled="submitting"