dify-proxy-fontend/apps/web-antd/src/router/routes/modules/aiFlow.ts
Kven 9cead8075b feat(@vben/common-ui): 优化AI工作流模块
- 添加 AI 工作流相关的路由和页面组件
- 实现 AI 平台信息获取、WORD 生成和 PPT 生成等功能
-优化模板选择和历史记录展示逻辑
- 新增聊天参数获取和删除功能
- 更新相关 API接口
2025-05-16 17:44:56 +08:00

54 lines
1.2 KiB
TypeScript

import type { RouteRecordRaw } from 'vue-router';
import { HugeAi, SvgPPT, SvgSpider, SvgWord } from '@vben/icons';
const routes: RouteRecordRaw[] = [
{
name: 'aiflow',
path: '/aiflow',
meta: {
icon: HugeAi,
title: 'AI工作流',
order: 4,
authority: ['system'],
},
children: [
{
name: 'spider',
path: '/aiflow/spider',
component: () => import('#/views/spider/index.vue'),
meta: {
icon: SvgSpider,
title: 'AI平台信息获取',
order: 1,
authority: ['dify:server:init'],
},
},
{
name: 'word',
path: '/aiflow/word',
component: () => import('#/views/word/index.vue'),
meta: {
icon: SvgWord,
title: 'AI申报书WORD生成',
order: 2,
authority: ['dify:chat:send'],
},
},
{
name: 'ppt',
path: '/aiflow/ppt',
component: () => import('#/views/ppt/index.vue'),
meta: {
icon: SvgPPT,
title: 'PPT自动生成',
order: 3,
authority: ['dify:workflow:run'],
},
},
],
},
];
export default routes;