diff --git a/src/views/account/AccountDashboardView.vue b/src/views/account/AccountDashboardView.vue index ea58d1c..8106680 100644 --- a/src/views/account/AccountDashboardView.vue +++ b/src/views/account/AccountDashboardView.vue @@ -24,7 +24,8 @@ const catType = ref('EXPENSE') // 분류별 파이차트 구분 const catData = ref([]) // [{category, total}] const categoryList = ref([]) // 분류 목록(대/소분류 매핑용) const trendData = ref([]) // [{month, netWorth}] -const aiBullets = ref([]) // AI 재무 코멘트 문장들 +const aiBullets = ref([]) // AI 재무 코멘트(현황 관찰) +const aiTips = ref([]) // AI 절약 가이드(실행 제안) const aiLoading = ref(false) const periodLabel = computed(() => `${year.value}년 ${String(month.value).padStart(2, '0')}월`) @@ -278,6 +279,7 @@ async function load() { async function loadAiComment() { aiLoading.value = true aiBullets.value = [] + aiTips.value = [] try { const res = await accountApi.aiComment({ year: year.value, @@ -290,8 +292,10 @@ async function loadAiComment() { categories: (catData.value || []).slice(0, 8).map((c) => ({ category: c.category, total: c.total })), }) aiBullets.value = res?.bullets || [] + aiTips.value = res?.tips || [] } catch { aiBullets.value = [] + aiTips.value = [] } finally { aiLoading.value = false } @@ -361,13 +365,21 @@ onMounted(async () => {
불러오는 중...
- -
집계를 분석하고 있어요…
--- {{ b }}
-
+ ++- {{ b }}
+
++- {{ t }}
+
+