diff --git a/frontend/app/web-gold/src/components/PromptSelector.vue b/frontend/app/web-gold/src/components/PromptSelector.vue deleted file mode 100644 index d87070cbb9..0000000000 --- a/frontend/app/web-gold/src/components/PromptSelector.vue +++ /dev/null @@ -1,604 +0,0 @@ - - - - - - - - - {{ prompt.name }} - {{ prompt.category }} - - - {{ prompt.source === 'created' ? '自建' : '收藏' }} - - - - - - - - - - - {{ prompt.name }} - - - - - 更多 ({{ allPrompts.length - displayCount }}) - - - - - - - - 加载中... - - - - - - - 选择提示词 - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ prompt.name }} - 启用 - 禁用 - - - - - - - - - - - 没有找到匹配的提示词 - - - - - - - - - - \ No newline at end of file diff --git a/frontend/app/web-gold/src/components/StyleSelector.vue b/frontend/app/web-gold/src/components/StyleSelector.vue index d9e1502d4d..840fbd2288 100644 --- a/frontend/app/web-gold/src/components/StyleSelector.vue +++ b/frontend/app/web-gold/src/components/StyleSelector.vue @@ -8,43 +8,20 @@ :filter-option="filterOption" @change="handleChange" > - - - - 用户风格 - - - - {{ item.name }} - 风格 - - - - - - - - 收藏的智能体 - - - - - {{ item.name }} - {{ item.categoryName || '智能体' }} - - - + + + + {{ item.name }} + {{ item.category || '其他' }} + + - + 暂无可选项 @@ -55,7 +32,6 @@ - - - diff --git a/frontend/app/web-gold/src/views/trends/Forecast.vue b/frontend/app/web-gold/src/views/trends/Forecast.vue index 1a1fb0b3fa..2acb4e72b2 100644 --- a/frontend/app/web-gold/src/views/trends/Forecast.vue +++ b/frontend/app/web-gold/src/views/trends/Forecast.vue @@ -44,16 +44,9 @@ const topicDetails = reactive({ level: 50 }) -// 智能体列表 -const agentList = ref([]) -const loadingAgents = ref(false) - // 当前选中的智能体 const selectedAgent = ref(null) -// 当前选中的风格类型 -const selectedStyleType = ref('agent') - // 工具函数 function formatNumber(num) { if (!num) return '0' @@ -89,52 +82,20 @@ async function copyContent() { } } -// 加载智能体列表(保留用于其他逻辑) -async function loadAgentList() { - loadingAgents.value = true - try { - const res = await getAgentList() - if (res.code === 0 && res.data) { - agentList.value = res.data.map(item => ({ - id: item.id, - agentId: item.agentId, - name: item.agentName, - description: item.description, - systemPrompt: item.systemPrompt, - avatar: item.icon, - categoryName: item.categoryName || '其他', - isFavorite: item.isFavorite || false - })) - } - } catch (error) { - console.error('加载智能体列表失败:', error) - } finally { - loadingAgents.value = false - } -} // 处理风格选择变化 function handleStyleChange(data) { if (!data) { selectedAgent.value = null - selectedStyleType.value = null return } - const { id, type, item } = data - selectedStyleType.value = type + const { id, item } = data topicDetails.selectedAgentId = id - - if (type === 'agent') { - // 选择的是智能体 - selectedAgent.value = item - } else if (type === 'prompt') { - // 选择的是用户风格 - selectedAgent.value = { - id: item.id, - name: item.name, - systemPrompt: item.content - } + selectedAgent.value = { + id: item.id, + name: item.name, + systemPrompt: item.content } } @@ -382,8 +343,6 @@ async function handleSearch() { // 初始化 onMounted(() => { - // 加载智能体列表用于后续逻辑 - loadAgentList() pointsConfigStore.loadConfig() })
没有找到匹配的提示词