From dfdf88c72f3eebdff7da36ba4b05ae4f64e5c5c0 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 28 Nov 2025 12:34:43 +0800 Subject: [PATCH] refactor: If the recommendation question fails, it can be retrieved again. --- frontend/src/i18n/en.json | 2 + frontend/src/i18n/ko-KR.json | 2 + frontend/src/i18n/zh-CN.json | 2 + frontend/src/views/chat/QuickQuestion.vue | 68 +++++++++++++++++-- frontend/src/views/chat/RecentQuestion.vue | 7 ++ frontend/src/views/chat/RecommendQuestion.vue | 15 ++++ frontend/src/views/system/prompt/index.vue | 4 +- 7 files changed, 93 insertions(+), 7 deletions(-) diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index 0689ef63..5fd06752 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -184,6 +184,8 @@ "chart_selected": "Selected {0}" }, "qa": { + "retrieve_error": "Model recommendation failed...", + "retrieve_again": "Retrieve Again", "recently": "recently", "recommend": "recommend", "quick_question": "quick question", diff --git a/frontend/src/i18n/ko-KR.json b/frontend/src/i18n/ko-KR.json index 8b45d9cc..8021e469 100644 --- a/frontend/src/i18n/ko-KR.json +++ b/frontend/src/i18n/ko-KR.json @@ -184,6 +184,8 @@ "chart_selected": "{0}개 선택됨" }, "qa": { + "retrieve_error": "모델 추천 문제 실패...", + "retrieve_again": "다시 가져오기", "recently": "최근", "recommend": "추천", "quick_question": "빠른 질문", diff --git a/frontend/src/i18n/zh-CN.json b/frontend/src/i18n/zh-CN.json index 0d60e4a4..037c9e34 100644 --- a/frontend/src/i18n/zh-CN.json +++ b/frontend/src/i18n/zh-CN.json @@ -184,6 +184,8 @@ "chart_selected": "已选{0}" }, "qa": { + "retrieve_error": "模型推荐问题失败...", + "retrieve_again": "重新获取", "recently": "最近", "recommend": "推荐", "quick_question": "快捷提问", diff --git a/frontend/src/views/chat/QuickQuestion.vue b/frontend/src/views/chat/QuickQuestion.vue index 5c7a2998..7d86ab5f 100644 --- a/frontend/src/views/chat/QuickQuestion.vue +++ b/frontend/src/views/chat/QuickQuestion.vue @@ -1,16 +1,23 @@