diff --git a/src/App.vue b/src/App.vue index 6c27c51..f10b84c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,6 +10,11 @@
+
@@ -81,7 +86,7 @@ diff --git a/src/stores/quota.ts b/src/stores/quota.ts index 4bba423..3158b2a 100644 --- a/src/stores/quota.ts +++ b/src/stores/quota.ts @@ -288,6 +288,8 @@ export const useQuotaStore = defineStore('quota', () => { // ─── 同花顺 AI 品种评分(全品种列表,按当前合约匹配)───── const aiVarietyScores = ref([]) + /** 最佳推荐品种(来自 recommend_variety_list,通常 3 个) */ + const aiRecommendVarieties = ref([]) const aiVarietyScore = ref(null) const aiVarietyScoreLoading = ref(false) const aiVarietyScoreError = ref(null) @@ -356,8 +358,9 @@ export const useQuotaStore = defineStore('quota', () => { aiVarietyScoreLoading.value = true aiVarietyScoreError.value = null try { - const list = await fetchAiVarietyScores() - aiVarietyScores.value = list + const { all, recommend } = await fetchAiVarietyScores() + aiVarietyScores.value = all + aiRecommendVarieties.value = recommend aiVarietyScoresLoaded.value = true bindCurrentAiScore() } catch (e) { @@ -642,6 +645,7 @@ export const useQuotaStore = defineStore('quota', () => { positionAnomalyLoading, positionAnomalyError, aiVarietyScore, + aiRecommendVarieties, aiVarietyScoreLoading, aiVarietyScoreError, wsStatus,