feat: update env configs and add team canvas endpoint

This commit is contained in:
2025-11-10 11:09:22 +08:00
parent b2053760be
commit 81fa34669a
19 changed files with 220 additions and 55 deletions

View File

@@ -350,7 +350,8 @@ export function PipelineSelectorItem() {
const fetchPipelines = async () => {
try {
const envMode = import.meta.env.MODE;
const service = envMode === 'flask' ? agentService.teamlistCanvas : agentService.listCanvas;
// const service = envMode === 'flask' ? agentService.teamlistCanvas : agentService.listCanvas;
const service = agentService.teamlistCanvas;
const res = await service({ canvas_category: AgentCategory.DataflowCanvas, page_size: 100 });
const data = res?.data?.data || {};
const list = data.canvas || [];