feat(knowledge): add pipeline support and build mode selection
refactor(configuration): reorganize naive config form with pipeline selector feat(form): add RadioFormField component for build mode selection docs: add ahooks usage guide for common patterns style: update app title and favicon chore: clean up unused agent interfaces
This commit is contained in:
@@ -44,7 +44,13 @@ export const useAgentList = (initialParams?: IAgentPaginationParams) => {
|
||||
setLoading(true);
|
||||
setError(null);
|
||||
try {
|
||||
const response = await agentService.listCanvas(params);
|
||||
const envMode = import.meta.env.MODE;
|
||||
let response: any = null;
|
||||
if (envMode === 'flask') {
|
||||
response = await agentService.teamlistCanvas(params);
|
||||
} else {
|
||||
response = await agentService.listCanvas(params);
|
||||
}
|
||||
const res = response.data || {};
|
||||
logger.info('useAgentList fetchAgentList', res);
|
||||
const data = res.data
|
||||
|
||||
Reference in New Issue
Block a user