Merge remote-tracking branch 'origin/feature/0909_主agent优化' into test

This commit is contained in:
rd
2025-09-09 17:21:35 +08:00
2 changed files with 16 additions and 11 deletions

View File

@ -30,6 +30,11 @@ export const getConversationList = (params: {}) => {
return Http.get(`/v1/conversation/message/list`, params);
};
// 首页任务选择
export const getHotTask = () => {
return Http.get(`/v1/multi-agent/hot-task`);
};
export const getHeaders = () => {
const store = useEnterpriseStore();
return {

View File

@ -3,6 +3,7 @@ import { message } from 'ant-design-vue';
import ExpandableTags from '@/components/expandable-tags/index.vue';
import SenderInput from '../sender-input/index.vue';
import { getHotTask } from '@/api/all/chat';
import { useChatStore } from '@/stores/modules/chat';
export default {
@ -10,6 +11,7 @@ export default {
const senderRef = ref(null);
const searchValue = ref('');
const chatStore = useChatStore();
const tagList = ref([]);
const handleSubmit = () => {
handleSearch();
@ -20,21 +22,19 @@ export default {
chatStore.onCreateSession();
};
const tagList = [
'汇总账号昨天的运营情况',
'查账号本月点赞量 Top3 的笔记详情',
'统计投流账户上周的消耗金额 + 点击率',
'把漏采数据的账号重新抓取下数据',
'规划账号未来 2 周的内容发布排期和选题',
'根据账号的已有选题生成具体内容稿件',
'根据热点生成账号的选题及内容',
];
const handleTagClick = (tag: string) => {
searchValue.value = tag;
senderRef.value?.focus();
};
onMounted(() => {
getHotTask().then((res) => {
const { data, code } = res;
if (code === 200) {
tagList.value = data?.list?.map((v) => v.title) ?? [];
}
});
});
return () => (
<div class="create-conversation-wrap w-full h-full flex justify-center">
@ -47,7 +47,7 @@ export default {
<p class="cts text-center mb-104px">AI 辅助账号托管账号 自动生成爆款内容 定时任务发布</p>
<SenderInput ref={senderRef} v-model={searchValue.value} onSubmit={handleSubmit} class="mb-24px" />
<p class="cts mb-6px">可以试试这样下发任务</p>
<ExpandableTags tags={tagList} clickable onTagClick={handleTagClick} />
<ExpandableTags tags={tagList.value} clickable onTagClick={handleTagClick} />
</div>
</div>
);