diff --git a/frontend/src/views/desktop/WeeklyReport.vue b/frontend/src/views/desktop/WeeklyReport.vue index f824a78..be4eea3 100644 --- a/frontend/src/views/desktop/WeeklyReport.vue +++ b/frontend/src/views/desktop/WeeklyReport.vue @@ -18,6 +18,7 @@ const aiSummary = ref('') const aiError = ref('') const aiCached = ref(false) const aiCreatedAt = ref('') +const aiExpanded = ref(false) const activeTab = ref('visits') const filterManagerId = ref('') const filterCustomerId = ref('') @@ -125,6 +126,7 @@ async function generateAISummary() { aiSummary.value = res.data.summary aiCached.value = !!res.data.cached aiCreatedAt.value = res.data.created_at || '' + aiExpanded.value = true } catch (e: any) { const detail = e.response?.data?.detail || 'AI 摘要生成失败,请检查 AI 服务配置或稍后重试' aiError.value = detail @@ -253,26 +255,29 @@ const notesByDate = computed(() => { - +